* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #1e1e1e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cccccc;
  position: relative;
}

body:not(.no-overflow) {
  overflow: hidden;
}

.background-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.background-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.03) 0%, 
      rgba(50, 50, 50, 0.08) 50%,
      rgba(255, 255, 255, 0.03) 100%
    );
  background-size: 200% 200%;
  animation: smoothWave 12s ease-in-out infinite;
}

@keyframes smoothWave {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.container {
  position: relative;
  z-index: 1;
  padding: 20px;
  width: 100%;
  max-width: 420px;
}

.login-card {
  padding: 0;
}

.logo-section {
  text-align: center;
  margin-bottom: 56px;
  animation: fadeInDown 0.6s ease-out;
}

.brand-name {
  font-size: 40px;
  font-weight: 300;
  color: #cccccc;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.tagline {
  font-size: 14px;
  color: #a0a0a0;
  font-weight: 400;
  letter-spacing: 0.3px;
}



.login-section {
  margin-bottom: 32px;
  animation: fadeIn 1s ease-out 0.2s both;
}

.roblox-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  background: transparent;
  color: #cccccc;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  border: 1px solid rgba(204, 204, 204, 0.15);
  position: relative;
  overflow: hidden;
}

.roblox-login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(204, 204, 204, 0.05);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.roblox-login-btn:hover::before {
  opacity: 1;
}

.roblox-login-btn:hover {
  border-color: rgba(204, 204, 204, 0.3);
  color: #e0e0e0;
}

.roblox-login-btn:active {
  background: rgba(204, 204, 204, 0.08);
  transform: scale(0.98);
}

.roblox-icon {
  width: 20px;
  height: 20px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.roblox-login-btn:hover .roblox-icon {
  opacity: 1;
}

.login-info {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #909090;
  font-weight: 400;
  letter-spacing: 0.2px;
}



@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 32px;
  }
  
  .tagline {
    font-size: 12px;
  }
}

.confirm-section {
  animation: fadeIn 1s ease-out 0.2s both;
}

.confirm-title {
  text-align: center;
  font-size: 16px;
  color: #cccccc;
  font-weight: 400;
  margin-bottom: 32px;
  letter-spacing: 0.3px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(204, 204, 204, 0.15);
  border-radius: 8px;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.user-profile:hover {
  border-color: rgba(204, 204, 204, 0.25);
  background: rgba(204, 204, 204, 0.03);
}

.user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(204, 204, 204, 0.2);
}

.user-info {
  flex: 1;
}

.user-name {
  font-size: 16px;
  color: #cccccc;
  font-weight: 400;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.user-id {
  font-size: 12px;
  color: #808080;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.confirm-btn {
  width: 100%;
  padding: 14px 24px;
  background: transparent;
  color: #cccccc;
  border: 1px solid rgba(204, 204, 204, 0.15);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.confirm-btn:hover {
  border-color: rgba(204, 204, 204, 0.3);
  background: rgba(204, 204, 204, 0.05);
  color: #e0e0e0;
}

.confirm-btn:active {
  background: rgba(204, 204, 204, 0.08);
  transform: scale(0.98);
}

.cancel-btn {
  width: 100%;
  padding: 14px 24px;
  background: transparent;
  color: #808080;
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(204, 204, 204, 0.08);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  display: block;
}

.cancel-btn:hover {
  color: #a0a0a0;
  border-color: rgba(204, 204, 204, 0.15);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
}

.loading-content {
  text-align: center;
}

.loading-text {
  font-size: 18px;
  color: #cccccc;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 3px solid rgba(204, 204, 204, 0.1);
  border-top-color: #cccccc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Dashboard */
.dashboard-content {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.dashboard-content.hidden {
  display: none;
}

.dashboard-content.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.dashboard-container {
  width: 100%;
  max-width: 800px;
}

.welcome-section {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeInDown 0.6s ease-out;
}

.welcome-title {
  font-size: 36px;
  color: #cccccc;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.welcome-subtitle {
  font-size: 16px;
  color: #a0a0a0;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Prompt Container */
.prompt-container {
  animation: fadeIn 0.8s ease-out 0.3s both;
}

.prompt-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: transparent;
  border: 1px solid rgba(204, 204, 204, 0.15);
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.prompt-wrapper:focus-within {
  border-color: rgba(204, 204, 204, 0.3);
}

.prompt-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #cccccc;
  font-size: 15px;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  font-weight: 400;
  letter-spacing: 0.2px;
  line-height: 1.5;
  resize: none;
  min-height: 24px;
  max-height: 200px;
  overflow-y: auto;
  transition: opacity 0.2s ease;
}

.prompt-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.prompt-input::placeholder {
  color: #6e6e6e;
}

.prompt-input::-webkit-scrollbar {
  width: 6px;
}

.prompt-input::-webkit-scrollbar-track {
  background: transparent;
}

.prompt-input::-webkit-scrollbar-thumb {
  background: rgba(204, 204, 204, 0.2);
  border-radius: 3px;
}

.prompt-input::-webkit-scrollbar-thumb:hover {
  background: rgba(204, 204, 204, 0.3);
}

.send-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: transparent;
  border: 1px solid rgba(204, 204, 204, 0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.send-btn:hover:not(:disabled) {
  border-color: rgba(204, 204, 204, 0.3);
  background: rgba(204, 204, 204, 0.05);
}

.send-btn:active:not(:disabled) {
  background: rgba(204, 204, 204, 0.08);
}

.send-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.send-icon {
  width: 18px;
  height: 18px;
  color: #cccccc;
  transition: color 0.2s ease;
}

.send-btn:hover:not(:disabled) .send-icon {
  color: #e0e0e0;
}

@media (max-width: 768px) {
  .welcome-title {
    font-size: 28px;
  }
  
  .welcome-subtitle {
    font-size: 14px;
  }
  
  .prompt-wrapper {
    padding: 12px;
  }
  
  .prompt-input {
    font-size: 14px;
  }
}

/* Discord Button */
.discord-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: transparent;
  border: 1px solid rgba(204, 204, 204, 0.15);
  border-radius: 8px;
  color: #a0a0a0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  z-index: 100;
}

.discord-btn:hover {
  border-color: rgba(204, 204, 204, 0.3);
  background: rgba(204, 204, 204, 0.05);
  color: #cccccc;
}

.discord-icon {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.discord-btn:hover .discord-icon {
  opacity: 1;
}

@media (max-width: 768px) {
  .discord-btn {
    bottom: 16px;
    left: 16px;
    padding: 10px 14px;
    font-size: 12px;
  }
  
  .discord-icon {
    width: 18px;
    height: 18px;
  }
}

/* Top Bar */
.top-bar {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 200;
}

/* Credits Display */
.credits-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid rgba(204, 204, 204, 0.15);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.credits-display:hover {
  border-color: rgba(204, 204, 204, 0.25);
  background: rgba(204, 204, 204, 0.03);
}

.coin-icon {
  width: 20px;
  height: 20px;
  color: #ffd700;
  opacity: 0.9;
}

.credits-amount {
  font-size: 14px;
  color: #b0b0b0;
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* Profile Dropdown */
.profile-dropdown-container {
  position: relative;
}

.profile-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(204, 204, 204, 0.2);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  overflow: hidden;
}

.profile-btn:hover {
  border-color: rgba(204, 204, 204, 0.4);
  transform: scale(1.05);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropdown-menu {
  position: absolute;
  top: 48px;
  right: 0;
  min-width: 140px;
  background: #2a2a2a;
  border: 1px solid rgba(204, 204, 204, 0.15);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.2s ease-out;
}

.dropdown-menu.hidden {
  display: none;
}

.logout-btn {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: #ff6b6b;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

.logout-btn:hover {
  background: rgba(255, 107, 107, 0.1);
  color: #ff8787;
}

@media (max-width: 768px) {
  .top-bar {
    top: 16px;
    right: 16px;
    gap: 12px;
  }
  
  .credits-display {
    padding: 8px 12px;
  }
  
  .coin-icon {
    width: 18px;
    height: 18px;
  }
  
  .credits-amount {
    font-size: 13px;
  }
  
  .profile-btn {
    width: 36px;
    height: 36px;
  }
}

/* Project Page */
.project-content {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.project-content.hidden {
  display: none;
}

/* Projects Button */
.projects-btn {
  position: fixed;
  top: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(204, 204, 204, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 150;
}

.projects-btn:hover {
  border-color: rgba(204, 204, 204, 0.3);
  background: rgba(204, 204, 204, 0.05);
}

.projects-icon {
  width: 22px;
  height: 22px;
  color: #cccccc;
}

/* Projects Sidebar */
.projects-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: #252525;
  border-right: 1px solid rgba(204, 204, 204, 0.1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease-out;
}

.projects-sidebar.hidden {
  display: none;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(204, 204, 204, 0.1);
}

.sidebar-header h3 {
  font-size: 16px;
  color: #cccccc;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.close-sidebar-btn {
  background: none;
  border: none;
  color: #808080;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.close-sidebar-btn:hover {
  color: #cccccc;
}

.projects-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.project-item {
  padding: 12px 14px;
  margin-bottom: 6px;
  background: transparent;
  border: 1px solid rgba(204, 204, 204, 0.08);
  border-radius: 6px;
  color: #a0a0a0;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-item:hover {
  background: rgba(204, 204, 204, 0.05);
  border-color: rgba(204, 204, 204, 0.15);
  color: #cccccc;
}

.project-item.active {
  background: rgba(204, 204, 204, 0.08);
  border-color: rgba(204, 204, 204, 0.2);
  color: #cccccc;
}

/* Chat Container */
.chat-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 80px 20px 120px;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

.chat-container::-webkit-scrollbar {
  width: 8px;
}

.chat-container::-webkit-scrollbar-track {
  background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
  background: rgba(204, 204, 204, 0.2);
  border-radius: 4px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
  background: rgba(204, 204, 204, 0.3);
}

.messages-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-text {
  font-size: 24px;
  color: #808080;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* Message Styles */
.message {
  margin-bottom: 24px;
  animation: fadeIn 0.4s ease-out;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(204, 204, 204, 0.2);
}

.ai-avatar {
  background: linear-gradient(135deg, #4a4a4a, #3a3a3a);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.ai-icon {
  width: 18px;
  height: 18px;
  color: #ffd700;
}

.message-role {
  font-size: 14px;
  color: #a0a0a0;
  font-weight: 400;
}

.message-content {
  padding-left: 44px;
  color: #cccccc;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

.message-content p {
  margin-bottom: 12px;
}

.message-content ul,
.message-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.message-content li {
  margin-bottom: 6px;
}

.message-content code {
  background: rgba(204, 204, 204, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
}

.message-content pre {
  background: rgba(204, 204, 204, 0.05);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 12px 0;
}

.message-content pre code {
  background: none;
  padding: 0;
}

.message-meta {
  padding-left: 44px;
  margin-top: 8px;
  font-size: 12px;
  color: #6e6e6e;
  font-weight: 300;
}

.generating-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 44px;
  color: #808080;
  font-size: 14px;
}

.generating-dots {
  display: flex;
  gap: 4px;
}

.dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Fixed Prompt Bar */
.prompt-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, #1e1e1e 80%, transparent);
  z-index: 100;
}

.prompt-fixed .prompt-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .projects-btn {
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
  }
  
  .projects-sidebar {
    width: 100%;
  }
  
  .chat-container {
    padding: 70px 16px 100px;
  }
  
  .empty-state-text {
    font-size: 20px;
  }
  
  .message-content {
    font-size: 14px;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background: #2a2a2a;
  border: 1px solid rgba(204, 204, 204, 0.15);
  border-radius: 12px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-title {
  font-size: 20px;
  color: #cccccc;
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.modal-input {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid rgba(204, 204, 204, 0.15);
  border-radius: 8px;
  color: #cccccc;
  font-size: 15px;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  margin-bottom: 24px;
  transition: border-color 0.2s ease;
}

.modal-input:focus {
  outline: none;
  border-color: rgba(204, 204, 204, 0.3);
}

.modal-input::placeholder {
  color: #6e6e6e;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(204, 204, 204, 0.15);
}

.modal-btn-cancel {
  background: transparent;
  color: #a0a0a0;
}

.modal-btn-cancel:hover {
  background: rgba(204, 204, 204, 0.05);
  color: #cccccc;
}

.modal-btn-create {
  background: rgba(204, 204, 204, 0.1);
  color: #cccccc;
  border-color: rgba(204, 204, 204, 0.2);
}

.modal-btn-create:hover {
  background: rgba(204, 204, 204, 0.15);
  border-color: rgba(204, 204, 204, 0.3);
}

/* Project Item with Delete */
.project-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  background: transparent;
  border: 1px solid rgba(204, 204, 204, 0.08);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.project-item:hover {
  background: rgba(204, 204, 204, 0.05);
  border-color: rgba(204, 204, 204, 0.15);
}

.project-item-content {
  flex: 1;
  padding: 12px 14px;
  cursor: pointer;
  color: #a0a0a0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-item:hover .project-item-content {
  color: #cccccc;
}

.project-item-name {
  display: block;
}

.project-delete-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: transparent;
  border: none;
  color: #808080;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-right: 6px;
  transition: all 0.2s ease;
}

.project-delete-btn:hover {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
}

.project-delete-btn svg {
  width: 16px;
  height: 16px;
}

/* Create Project Page */
.create-project-screen {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.create-project-screen.hidden {
  display: none;
}

.create-project-container {
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

.create-project-content {
  text-align: center;
  animation: fadeInDown 0.6s ease-out;
}

.create-project-title {
  font-size: 32px;
  color: #cccccc;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.create-project-subtitle {
  font-size: 16px;
  color: #a0a0a0;
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-bottom: 48px;
}

.create-project-input {
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: 1px solid rgba(204, 204, 204, 0.15);
  border-radius: 12px;
  color: #cccccc;
  font-size: 16px;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-bottom: 32px;
  transition: all 0.2s ease;
  text-align: center;
}

.create-project-input:focus {
  outline: none;
  border-color: rgba(204, 204, 204, 0.3);
  background: rgba(204, 204, 204, 0.02);
}

.create-project-input::placeholder {
  color: #6e6e6e;
  text-align: center;
}

.create-project-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.create-project-btn {
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(204, 204, 204, 0.15);
}

.create-project-btn-cancel {
  background: transparent;
  color: #a0a0a0;
}

.create-project-btn-cancel:hover {
  background: rgba(204, 204, 204, 0.05);
  color: #cccccc;
  border-color: rgba(204, 204, 204, 0.2);
}

.create-project-btn-continue {
  background: rgba(204, 204, 204, 0.1);
  color: #cccccc;
  border-color: rgba(204, 204, 204, 0.2);
}

.create-project-btn-continue:hover:not(:disabled) {
  background: rgba(204, 204, 204, 0.15);
  border-color: rgba(204, 204, 204, 0.3);
}

.create-project-btn-continue:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .create-project-title {
    font-size: 26px;
  }
  
  .create-project-subtitle {
    font-size: 14px;
    margin-bottom: 36px;
  }
  
  .create-project-input {
    font-size: 15px;
    padding: 16px 18px;
  }
  
  .create-project-actions {
    flex-direction: column;
  }
  
  .create-project-btn {
    width: 100%;
  }
}

.dashboard-link,
.pricing-link {
  display: block !important;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: #cccccc;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
  text-decoration: none;
  margin-bottom: 4px;
  visibility: visible !important;
  opacity: 1 !important;
}

.dashboard-link:hover,
.pricing-link:hover {
  background: rgba(204, 204, 204, 0.1);
}

/* Usage Stats in Dropdown */
.usage-stats {
  padding: 12px 14px;
  margin-bottom: 8px;
}

.usage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 16px;
}

.usage-item:last-child {
  margin-bottom: 0;
}

.usage-label {
  font-size: 12px;
  color: #808080;
  font-weight: 400;
  white-space: nowrap;
}

.usage-value {
  font-size: 13px;
  color: #cccccc;
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
}

.dropdown-divider {
  height: 1px;
  background: rgba(204, 204, 204, 0.1);
  margin: 8px 0;
}

/* Coming Soon Banner */
.coming-soon-banner {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(30, 144, 255, 0.1));
  border: 1px solid rgba(138, 43, 226, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 32px;
  animation: fadeIn 0.8s ease-out 0.5s both;
}

.banner-title {
  font-size: 16px;
  color: #cccccc;
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.banner-text {
  font-size: 13px;
  color: #a0a0a0;
  line-height: 1.5;
  letter-spacing: 0.2px;
}

.banner-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(138, 43, 226, 0.2);
  border-radius: 12px;
  font-size: 11px;
  color: #b19cd9;
  font-weight: 400;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* Error Message in Chat */
.error-message {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  animation: fadeIn 0.4s ease-out;
}

.error-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.error-icon {
  width: 24px;
  height: 24px;
  color: #ff6b6b;
}

.error-title {
  font-size: 16px;
  color: #ff8787;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.error-text {
  color: #cccccc;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

.discord-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 8px;
  color: #7289da;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.discord-support-btn:hover {
  background: rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.5);
  color: #8ea1e1;
}

.discord-icon-small {
  width: 18px;
  height: 18px;
}

/* Plugin Connection Status */
.connection-status {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  animation: slideDown 0.3s ease-out;
}

.connection-status.hidden {
  display: none;
}

.connection-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(78, 222, 128, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.connection-dot {
  width: 8px;
  height: 8px;
  background: #4ede80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.connection-text {
  font-size: 12px;
  color: #4ede80;
  font-weight: 400;
  letter-spacing: 0.2px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Task Visualization */
.task-embed {
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(204, 204, 204, 0.15);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  animation: fadeIn 0.4s ease-out;
}

.task-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.task-icon {
  width: 20px;
  height: 20px;
  color: #ffd700;
}

.task-title {
  font-size: 16px;
  color: #cccccc;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.task-circle {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(204, 204, 204, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.task-circle.completed {
  background: #4ede80;
  border-color: #4ede80;
}

.task-circle.completed::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.task-text {
  font-size: 14px;
  color: #a0a0a0;
  line-height: 1.4;
}

.task-item.completed .task-text {
  color: #4ede80;
}

.task-connector {
  position: absolute;
  left: 9px;
  top: 20px;
  width: 2px;
  height: 12px;
  background: rgba(204, 204, 204, 0.2);
}

.task-item:last-child .task-connector {
  display: none;
}

/* Approval System */
.approval-embed {
  background: rgba(138, 43, 226, 0.1);
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  animation: fadeIn 0.4s ease-out;
}

.approval-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.approval-icon {
  width: 20px;
  height: 20px;
  color: #b19cd9;
}

.approval-title {
  font-size: 16px;
  color: #b19cd9;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.approval-text {
  color: #cccccc;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.approval-actions {
  display: flex;
  gap: 12px;
}

.approval-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.approve-btn {
  background: rgba(78, 222, 128, 0.2);
  color: #4ede80;
  border: 1px solid rgba(78, 222, 128, 0.3);
}

.approve-btn:hover {
  background: rgba(78, 222, 128, 0.3);
}

.reject-btn {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.reject-btn:hover {
  background: rgba(255, 107, 107, 0.3);
}

/* Plugin Testing Banner */
.plugin-banner {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: 600px;
  width: calc(100% - 40px);
  animation: slideDown 0.4s ease-out;
}

.plugin-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 187, 0, 0.15);
  border: 1px solid rgba(255, 187, 0, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.plugin-banner-icon {
  width: 24px;
  height: 24px;
  color: #ffbb00;
  flex-shrink: 0;
  margin-top: 2px;
}

.plugin-banner-text {
  flex: 1;
}

.plugin-banner-text strong {
  display: block;
  color: #ffbb00;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.plugin-banner-text p {
  color: #cccccc;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 768px) {
  .plugin-banner {
    top: 60px;
  }
  
  .plugin-banner-content {
    padding: 12px 16px;
  }
  
  .plugin-banner-icon {
    width: 20px;
    height: 20px;
  }
  
  .plugin-banner-text strong {
    font-size: 13px;
  }
  
  .plugin-banner-text p {
    font-size: 12px;
  }
}

/* Plugin Required Banner (above prompt) */
.plugin-required-banner {
  width: 100%;
  margin-bottom: 12px;
  animation: slideUp 0.3s ease-out;
}

.plugin-required-banner.hidden {
  display: none;
}

.plugin-required-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.plugin-required-icon {
  width: 22px;
  height: 22px;
  color: #ff6b6b;
  flex-shrink: 0;
}

.plugin-required-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plugin-required-text strong {
  color: #ff6b6b;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.plugin-required-text span {
  color: #cccccc;
  font-size: 12px;
  line-height: 1.3;
}

.plugin-install-btn {
  padding: 8px 16px;
  background: rgba(78, 222, 128, 0.2);
  border: 1px solid rgba(78, 222, 128, 0.3);
  border-radius: 6px;
  color: #4ede80;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.plugin-install-btn:hover {
  background: rgba(78, 222, 128, 0.3);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .plugin-required-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .plugin-install-btn {
    width: 100%;
  }
}

/* Connection Notification Animations */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* Pricing Page */
.pricing-page {
  min-height: 100vh;
  background: #0a0a0a;
  padding: 40px 20px;
}

.pricing-header {
  max-width: 1200px;
  margin: 0 auto 60px;
  text-align: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(204, 204, 204, 0.15);
  border-radius: 8px;
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  margin-bottom: 40px;
}

.back-btn svg {
  width: 18px;
  height: 18px;
}

.back-btn:hover {
  background: rgba(40, 40, 40, 0.9);
  border-color: rgba(204, 204, 204, 0.3);
}

.pricing-title {
  font-size: 48px;
  color: #cccccc;
  font-weight: 300;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.pricing-subtitle {
  font-size: 18px;
  color: #a0a0a0;
  margin-bottom: 40px;
}

/* Billing Toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.billing-label {
  font-size: 16px;
  color: #a0a0a0;
  transition: color 0.2s ease;
}

#billingToggle:checked ~ #monthlyLabel {
  color: #4ede80;
  font-weight: 500;
}

#billingToggle:not(:checked) ~ #weeklyLabel {
  color: #4ede80;
  font-weight: 500;
}

.toggle-switch {
  position: relative;
  width: 56px;
  height: 28px;
  display: inline-block;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(80, 80, 80, 0.5);
  border-radius: 28px;
  transition: 0.3s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .toggle-slider {
  background: #4ede80;
}

input:checked + .toggle-slider:before {
  transform: translateX(28px);
}

.discount-badge {
  padding: 4px 12px;
  background: rgba(78, 222, 128, 0.2);
  border: 1px solid rgba(78, 222, 128, 0.3);
  border-radius: 12px;
  color: #4ede80;
  font-size: 12px;
  font-weight: 500;
}

/* Pricing Grid */
.pricing-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 20px;
}

.pricing-card {
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(204, 204, 204, 0.15);
  border-radius: 16px;
  padding: 32px 24px;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(204, 204, 204, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.popular-card {
  border-color: rgba(78, 222, 128, 0.5);
  background: rgba(40, 40, 40, 0.9);
}

.popular-card:hover {
  border-color: rgba(78, 222, 128, 0.7);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.free-badge {
  background: rgba(160, 160, 160, 0.2);
  border: 1px solid rgba(160, 160, 160, 0.3);
  color: #a0a0a0;
}

.popular-badge {
  background: rgba(78, 222, 128, 0.2);
  border: 1px solid rgba(78, 222, 128, 0.5);
  color: #4ede80;
}

.dev-badge {
  background: rgba(138, 43, 226, 0.2);
  border: 1px solid rgba(138, 43, 226, 0.5);
  color: #b19cd9;
}

.plan-name {
  font-size: 28px;
  color: #cccccc;
  font-weight: 400;
  margin-bottom: 16px;
  margin-top: 8px;
}

.plan-price {
  margin-bottom: 16px;
}

.price-amount {
  font-size: 42px;
  color: #ffffff;
  font-weight: 300;
}

.price-period {
  font-size: 16px;
  color: #a0a0a0;
}

.plan-description {
  color: #a0a0a0;
  font-size: 14px;
  margin-bottom: 24px;
  min-height: 40px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: #cccccc;
  font-size: 14px;
  line-height: 1.5;
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: #4ede80;
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-button {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(78, 222, 128, 0.2);
  border: 1px solid rgba(78, 222, 128, 0.3);
  color: #4ede80;
}

.plan-button:hover:not(:disabled) {
  background: rgba(78, 222, 128, 0.3);
  transform: translateY(-2px);
}

.plan-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.current-plan-btn {
  background: rgba(160, 160, 160, 0.2);
  border-color: rgba(160, 160, 160, 0.3);
  color: #a0a0a0;
}

.popular-btn {
  background: #4ede80;
  border-color: #4ede80;
  color: white;
}

.popular-btn:hover {
  background: #3ec970;
}

/* Pricing Footer */
.pricing-footer {
  max-width: 800px;
  margin: 60px auto 0;
  text-align: center;
  padding: 0 20px;
}

.payment-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #a0a0a0;
  font-size: 14px;
  margin-bottom: 16px;
}

.lock-icon {
  width: 18px;
  height: 18px;
  color: #4ede80;
}

.pricing-note {
  color: #808080;
  font-size: 13px;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .pricing-title {
    font-size: 32px;
  }
  
  .pricing-subtitle {
    font-size: 16px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* Disconnect Plugin Button */
.disconnect-plugin-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 107, 107, 0.2);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 8px;
  color: #ff6b6b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100;
}

.disconnect-plugin-btn svg {
  width: 18px;
  height: 18px;
}

.disconnect-plugin-btn:hover {
  background: rgba(255, 107, 107, 0.3);
  transform: translateY(-2px);
}

.disconnect-plugin-btn.hidden {
  display: none;
}

/* Prompt Limit Warning */
.prompt-limit-warning {
  width: 100%;
  margin-bottom: 12px;
  animation: slideUp 0.3s ease-out;
}

.prompt-limit-warning.hidden {
  display: none;
}

.limit-warning-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 187, 0, 0.15);
  border: 1px solid rgba(255, 187, 0, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.warning-icon {
  width: 22px;
  height: 22px;
  color: #ffbb00;
  flex-shrink: 0;
}

.limit-warning-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.limit-warning-text strong {
  color: #ffbb00;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.limit-warning-text span {
  color: #cccccc;
  font-size: 12px;
  line-height: 1.3;
}

.reset-timer {
  color: #a0a0a0 !important;
  font-size: 11px !important;
}

.upgrade-btn-small {
  padding: 8px 16px;
  background: rgba(78, 222, 128, 0.2);
  border: 1px solid rgba(78, 222, 128, 0.3);
  border-radius: 6px;
  color: #4ede80;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.upgrade-btn-small:hover {
  background: rgba(78, 222, 128, 0.3);
}

/* Mode Switcher */
.mode-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(204, 204, 204, 0.15);
  border-radius: 12px;
  width: fit-content;
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #a0a0a0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn svg {
  width: 16px;
  height: 16px;
}

.mode-btn:hover {
  background: rgba(204, 204, 204, 0.1);
  color: #cccccc;
}

.mode-btn.active {
  background: rgba(78, 222, 128, 0.2);
  color: #4ede80;
  border: 1px solid rgba(78, 222, 128, 0.3);
}


/* Manage Plan Page Styles */
.manage-plan-link {
  display: block;
  padding: 12px 16px;
  color: #cccccc;
  text-decoration: none;
  transition: background 0.2s;
}

.manage-plan-link:hover {
  background: rgba(204, 204, 204, 0.1);
}

.manage-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.manage-header {
  margin-bottom: 32px;
}

.manage-title {
  font-size: 32px;
  font-weight: 600;
  color: #cccccc;
  margin-bottom: 8px;
}

.manage-subtitle {
  font-size: 16px;
  color: #808080;
}

.plan-card {
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(204, 204, 204, 0.15);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.plan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.current-plan-name {
  font-size: 24px;
  font-weight: 600;
  color: #4ede80;
}

.plan-status {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.status-active {
  background: rgba(78, 222, 128, 0.2);
  color: #4ede80;
}

.status-expired {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.plan-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 12px;
  color: #808080;
}

.detail-value {
  font-size: 16px;
  font-weight: 600;
  color: #cccccc;
}

.expiry-warning {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 8px;
  padding: 12px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.warning-icon {
  width: 24px;
  height: 24px;
  color: #ffc107;
  flex-shrink: 0;
}

.warning-text {
  font-size: 14px;
  color: #ffc107;
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.renew-btn {
  background: #4ede80;
  color: #0a0a0a;
}

.renew-btn:hover {
  background: #5ef090;
}

.upgrade-btn {
  background: transparent;
  border: 1px solid rgba(204, 204, 204, 0.3);
  color: #cccccc;
}

.upgrade-btn:hover {
  border-color: #4ede80;
  color: #4ede80;
}

.orders-section {
  margin-top: 40px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #cccccc;
  margin-bottom: 16px;
}

.order-item {
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(204, 204, 204, 0.15);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.order-id {
  font-family: monospace;
  font-size: 14px;
  color: #4ede80;
}

.order-date {
  font-size: 12px;
  color: #808080;
}

.order-details {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: #cccccc;
  flex-wrap: wrap;
}
