/* Enhanced Dashboard CSS with ALL requested features */

/* Dashboard Navigation */
.dashboard-nav {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* Fixed width constraint and overflow handling */
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.nav-container {
  /* Fixed container width and prevented overflow */
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
  min-height: 60px;
}

/* Improved nav-logo layout to prevent overflow */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.nav-logo h2 {
  color: var(--primary-color);
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Better back button styling and responsive behavior */
.back-nav-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.back-nav-btn:hover {
  background: var(--bg-tertiary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dashboard Menu Toggle */
.dashboard-menu-toggle {
  position: relative;
  flex-shrink: 0;
}

.hamburger-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.hamburger-menu:hover {
  background: var(--bg-secondary);
}

.hamburger-menu span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Dashboard Menu Dropdown */
.dashboard-menu-dropdown {
  position: fixed;
  top: 60px;
  right: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  max-width: 250px;
  z-index: 1000;
  display: none;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dashboard-menu-dropdown.show {
  display: block;
}

.dashboard-menu-dropdown .menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: var(--text-primary);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dashboard-menu-dropdown .menu-item:hover {
  background: var(--bg-secondary);
}

.dashboard-menu-dropdown .menu-item i {
  width: 16px;
  text-align: center;
  color: var(--primary-color);
}

/* Added logout item styling */
.dashboard-menu-dropdown .logout-item {
  border-top: 1px solid var(--border-color);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.dashboard-menu-dropdown .logout-item:hover {
  background: #fee;
  color: #dc3545;
}

.dashboard-menu-dropdown .logout-item i {
  color: #dc3545;
}

/* Dashboard Menu Bar */
.dashboard-menu-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.menu-item:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
}

.menu-item.active {
  background: var(--primary-color);
  color: white;
}

.menu-item span {
  font-weight: 500;
}

/* Chat notification indicator */
.chat-notification {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  min-width: 0;
  opacity: 1;
  visibility: visible;
}

.user-info span {
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  display: block;
  opacity: 1;
  visibility: visible;
}

#userName {
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  opacity: 1;
  visibility: visible;
}

#userTier {
  display: inline-block;
  opacity: 1;
  visibility: visible;
}

.tier-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  opacity: 1;
  visibility: visible;
}

.tier-badge.premium {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.tier-badge.standard {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.tier-badge.free {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.user-menu {
  position: relative;
}

.user-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.user-menu-btn:hover {
  background: var(--bg-secondary);
}

.user-dropdown {
  position: fixed;
  top: 60px;
  right: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 150px;
  z-index: 1000;
  display: none;
  padding: 0.5rem 0;
  margin-top: 0;
}

.user-dropdown.show {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.user-dropdown a:hover {
  background: var(--bg-secondary);
}

.user-dropdown a:last-child {
  border-top: 1px solid var(--border-color);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  color: #dc3545;
}

.user-dropdown a:last-child:hover {
  background: #fee;
}

/* Dashboard Container */
.dashboard-container {
  display: flex;
  min-height: calc(100vh - 80px);
}

/* Dashboard Sidebar */
.dashboard-sidebar {
  width: 280px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  padding: 2rem 0;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1rem;
}

.sidebar-menu .menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.sidebar-menu .menu-item:hover {
  background: var(--bg-secondary);
  transform: translateX(4px);
}

.sidebar-menu .menu-item.active {
  background: var(--primary-color);
  color: white;
}

.sidebar-menu .menu-item span {
  font-weight: 500;
}

/* Chat sidebar notification */
.chat-sidebar-item .chat-notification {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* Dashboard Main Content */
.dashboard-main {
  flex: 1;
  padding: 2rem;
  background: var(--bg-secondary);
  overflow-y: auto;
}

.dashboard-section {
  display: none;
}

.dashboard-section.active {
  display: block;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h1 {
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  font-weight: 600;
}

.section-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.stat-content h3 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-content p {
  margin: 0.25rem 0 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.dashboard-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
  margin: 0 0 1.5rem 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.quick-action-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-action-item:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
}

.action-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.action-content h4 {
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.action-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Password Form Styling */
.password-form {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
}

.password-actions {
  margin-top: 1.5rem;
}

.btn-password {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-password:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Support Ticket Styles */
.ticket-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.ticket-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.ticket-header h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
  margin-right: 1rem;
}

.ticket-status {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
  flex-shrink: 0;
}

.ticket-status.open {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.ticket-status.in-progress {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.ticket-status.resolved {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ticket-status.closed {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.ticket-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.ticket-category i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.ticket-message {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0.75rem 0 1rem 0;
  font-size: 0.95rem;
}

.ticket-date {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.ticket-date i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

/* Settings Styles */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.setting-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.setting-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.setting-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.setting-label input[type="checkbox"]:checked + .checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.setting-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

.account-actions button {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-transform: none;
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
}

.btn-warning {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border: 1px solid #f093fb;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #f5576c 0%, #e0407a 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border: 1px solid #e74c3c;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.account-actions button i {
  font-size: 1.1rem;
}

/* Responsive adjustments for account actions */
@media (max-width: 768px) {
  .account-actions {
    gap: 0.75rem;
  }

  .account-actions button {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* Subscription Styles */
.subscription-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
}

.current-plan {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.expiry-info {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.expiry-info.expiry-warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.expiry-info.expiry-expired {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.expiry-date {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.5rem 0;
}

.days-remaining {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

.warning-text {
  color: #f59e0b;
  font-weight: 600;
  margin: 0.5rem 0;
}

.expired-text {
  color: #ef4444;
  font-weight: 600;
  margin: 0.5rem 0;
}

.subscription-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.tier-display,
.expiry-info,
.payment-info {
  text-align: center;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.tier-display .tier-badge {
  display: block;
  margin-bottom: 0.5rem;
}

.tier-label,
.expiry-label,
.payment-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.expiry-date,
.payment-date {
  font-weight: 600;
  color: var(--text-primary);
}

/* Plan Comparison */
.plan-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.plan-option {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.plan-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.plan-option.featured {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.1) 100%);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.plan-header h4 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-secondary);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.plan-features li {
  padding: 0.5rem 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-features li i {
  color: #27ae60;
}

.btn-plan {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-plan:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-plan.featured {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* Plans Grid for Hosting/Domain */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.plan-card {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.plan-card.popular {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.1) 100%);
}

.plan-description {
  color: var(--text-secondary);
  margin: 1rem 0;
}

.domain-search {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.domain-search input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Domain Results */
.domain-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin: 0.5rem 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  transition: all 0.3s ease;
}

.domain-result.available {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.domain-result.taken {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Added confidence-based styling for domain results */
.domain-result.confidence-high {
  border-width: 2px;
}

.domain-result.confidence-medium {
  border-style: dashed;
}

.domain-result.confidence-low {
  border-style: dotted;
  opacity: 0.8;
}

.domain-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.domain-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  flex: 1;
  /* Added mobile overflow protection for long domain names */
  word-break: break-all;
  overflow-wrap: break-word;
  max-width: 100%;
}

.confidence-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: help;
}

.confidence-high .confidence-indicator {
  background: #22c55e;
  color: white;
}

.confidence-medium .confidence-indicator {
  background: #f59e0b;
  color: white;
}

.confidence-low .confidence-indicator {
  background: #6b7280;
  color: white;
}

.check-method {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  font-style: italic;
}

.domain-note {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.domain-summary {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
}

.domain-summary p {
  margin: 0.5rem 0;
}

.domain-summary small {
  color: var(--text-secondary);
}

.domain-status.available {
  color: #22c55e;
  font-weight: 600;
}

.domain-status.taken {
  color: #ef4444;
  font-weight: 600;
}

/* Enhanced Payment Instructions Styling */
.payment-methods {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.payment-method {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.payment-method:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
}

.payment-method-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1rem 1.5rem;
}

.payment-method-header h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.payment-method-header i {
  font-size: 1.2rem;
}

.payment-details {
  padding: 1.5rem;
}

.payment-info-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
}

.payment-info-card p {
  margin: 0.5rem 0;
  color: var(--text-primary);
  line-height: 1.5;
}

.crypto-address-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.crypto-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
}

.crypto-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.address-copy-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem;
}

.crypto-address {
  flex: 1;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: var(--text-primary);
  word-break: break-all;
  line-height: 1.4;
}

.copy-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 36px;
}

.copy-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.copy-btn:active {
  transform: translateY(0);
}

.copy-btn i {
  font-size: 0.9rem;
}

.payment-note {
  background: #000000;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 1rem;
}

.note-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.note-content i {
  color: #ffffff;
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.note-content p {
  color: #ffffff;
  margin: 0;
  line-height: 1.5;
}

/* Added PayPal payment method selector styles */
.payment-method-selector {
  margin-bottom: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.payment-method-selector h4 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.payment-method-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-method-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 1rem;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.payment-method-option:hover {
  border-color: var(--primary-color);
  background: rgba(var(--primary-rgb), 0.05);
}

.payment-method-option input[type="radio"] {
  margin-right: 1rem;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.payment-method-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1rem;
}

.payment-method-label i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.payment-form-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Added PayPal subscription section styles */
.paypal-subscription-section h4 {
  margin: 0 0 1.5rem 0;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

.paypal-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.paypal-plan-card {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.paypal-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.paypal-plan-card.featured {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.1) 100%);
}

.paypal-plan-card .plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.paypal-plan-card .plan-header {
  margin-bottom: 1.5rem;
}

.paypal-plan-card .plan-header h5 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.paypal-plan-card .plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.paypal-plan-card .plan-price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.paypal-plan-card .plan-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.paypal-plan-card .plan-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.paypal-plan-card .plan-features i {
  color: var(--success-color);
  font-size: 0.9rem;
  width: 16px;
}

.paypal-button-container {
  margin-top: 1.5rem;
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Added responsive styles for PayPal section */
@media (max-width: 768px) {
  .payment-method-options {
    gap: 0.75rem;
  }

  .payment-method-option {
    padding: 0.75rem;
  }

  .payment-method-label {
    font-size: 0.9rem;
  }

  .paypal-plans-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .paypal-plan-card {
    padding: 1.5rem;
  }

  .paypal-plan-card .plan-price {
    font-size: 2rem;
  }
}

/* Added PayPal loading and success states */
.paypal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.paypal-loading i {
  animation: spin 1s linear infinite;
}

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

.paypal-success {
  background: var(--success-color);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 1rem;
}

.paypal-error {
  background: var(--error-color);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 1rem;
}

/* Enhanced Template Filters Styling */
.template-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.template-filters input[type="text"] {
  flex: 1;
  min-width: 250px;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.template-filters input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.template-filters input[type="text"]::placeholder {
  color: var(--text-secondary);
}

.template-filters select {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.template-filters select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.template-filters select:hover {
  border-color: var(--primary-color);
}

/* Style select dropdown arrow */
.template-filters select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* Template Grid Improvements */
.user-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.template-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.template-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.2);
  transform: translateY(-4px);
}

.template-image {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.template-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.template-card:hover .template-image img {
  transform: scale(1.08);
}

.template-image i {
  font-size: 3.5rem;
  color: var(--text-secondary);
  opacity: 0.3;
}

.template-info {
  padding: 1.5rem;
}

.template-info h4 {
  margin: 0 0 0.75rem 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.template-description {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: center;
}

.template-category {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.template-tier {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.template-tier.tier-free,
.template-tier.free {
  background: linear-gradient(135deg, #27ae60, #229954);
  color: white;
}

.template-tier.tier-standard,
.template-tier.standard {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
}

.template-tier.tier-premium,
.template-tier.premium {
  background: linear-gradient(135deg, #8e44ad, #6c3483);
  color: white;
}

.template-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.template-tag {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.3rem 0.75rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.template-tag:hover {
  border-color: var(--primary-color);
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
}

.template-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.template-actions button {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
}

/* Enhanced Chat with Admin Styling */
.chat-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 600px;
  max-height: 600px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-primary);
  position: relative;
}

.chat-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
  color: white;
  padding: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.chat-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.chat-status.online::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #27ae60;
  border-radius: 50%;
  display: inline-block;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  max-height: calc(600px - 140px);
  height: 100%;
  position: relative;
}

.chat-message {
  display: flex;
  width: 100%;
}

.chat-message.user,
.chat-message.user-message {
  justify-content: flex-end;
}

.chat-message.admin,
.chat-message.admin-message {
  justify-content: flex-start;
}

.message-content {
  max-width: 70%;
  padding: 0.875rem 1.25rem;
  border-radius: 18px;
  position: relative;
}

.chat-message.user .message-content,
.chat-message.user-message .message-content {
  background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
  color: white;
  border-bottom-right-radius: 6px;
}

.chat-message.admin .message-content,
.chat-message.admin-message .message-content {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 6px;
}

.message-content p {
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.message-content small,
.message-time {
  font-size: 0.75rem;
  opacity: 0.7;
  display: block;
  margin-top: 0.5rem;
}

.chat-input-container {
  display: flex;
  padding: 1rem;
  gap: 0.75rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

#userChatInput,
#websiteManagerInput {
  flex: 1;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

#userChatInput:focus,
#websiteManagerInput:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chat-attach-btn {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.875rem 1.25rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-attach-btn:hover {
  background: var(--bg-tertiary);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.chat-send-btn {
  background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-send-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.chat-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.welcome-message {
  text-align: center;
  padding: 2rem;
}

.welcome-message .chat-message {
  max-width: 100%;
  align-self: center;
}

/* System Messages and Project Info */
.system-message {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  border-radius: 8px;
  margin: 0.5rem 0;
}

.system-message p {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.6;
}

.system-message i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.project-info-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.project-info-card h4 {
  margin: 0 0 1rem 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.project-info-card h4 i {
  margin-right: 0.5rem;
}

.project-info-card p {
  margin: 0.75rem 0;
  line-height: 1.6;
}

.project-info-card strong {
  color: var(--text-secondary);
  margin-right: 0.5rem;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge.new {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.status-badge.in-progress {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.status-badge.completed {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.status-badge.open {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.status-badge.closed {
  background: rgba(107, 114, 128, 0.2);
  color: #6b7280;
}

/* Added Website Marketplace Styles */
/* Website Marketplace Styling */
.website-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.website-filters input,
.website-filters select {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.website-filters input:focus,
.website-filters select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.website-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}


/* Resource display styles */
.resource-section {
  margin-bottom: 1.5rem;
}

.resource-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.resource-item strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.resource-item small {
  display: block;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.domain-item, .host-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.domain-header, .host-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.domain-header strong, .host-header strong {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.domain-info p, .host-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  color: var(--text-secondary);
}

.domain-info i, .host-info i {
  color: var(--primary-color);
  width: 20px;
}

.access-details {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
}

.access-details h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.access-details pre {
  background: #f5f5f5;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.access-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.access-item strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.access-item pre {
  background: #f5f5f5;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
  margin: 0;
  color: #1e293b;
}


.website-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.website-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.website-preview {
  height: 200px;
  overflow: hidden;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.website-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.website-card:hover .website-preview img {
  transform: scale(1.05);
}

.website-preview i {
  font-size: 3rem;
  color: var(--text-secondary);
}

.website-info {
  padding: 1.5rem;
}

.website-info h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.website-info p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.website-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.website-category {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.website-tag {
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
}

.website-pricing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.original-price {
  font-size: 1rem;
  color: var(--text-secondary);
  text-decoration: line-through;
}

.final-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.discount-badge {
  background: #e74c3c;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.website-includes {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.include-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.include-item:last-child {
  margin-bottom: 0;
}

.include-item i {
  color: #27ae60;
  font-size: 1rem;
}

.website-actions {
  display: flex;
  gap: 0.75rem;
}

.website-actions .btn-secondary,
.website-actions .btn-primary {
  flex: 1;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
}

.website-actions .btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.website-actions .btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

.website-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
  color: white;
}

.website-actions .btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.no-websites {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.no-websites i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Customized Website Section */
.customized-website-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.customized-website-header {
  text-align: center;
  margin-bottom: 2rem;
}

.customized-website-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  color: var(--text-primary);
}

.customized-website-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.customized-website-content {
  text-align: center;
}

.custom-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.custom-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.custom-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.custom-feature i {
  font-size: 2rem;
  color: var(--primary-color);
}

.custom-feature span {
  font-weight: 600;
  color: var(--text-primary);
}

.customized-website-content .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.customized-website-content .btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* Website Manager Chat Enhancements */
#website-manager .chat-header {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

#website-manager .chat-header h4 {
  color: white;
}

#website-manager .chat-send-btn {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

#website-manager .chat-send-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

#website-manager .chat-message.user-message .message-content {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 6px;
}

/* Enhanced Website Chat History Section Styles */
.website-chat-history-section {
  margin-bottom: 2rem;
}

.featured-card {
  border: 2px solid var(--primary-color);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.chat-history-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.chat-history-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.chat-history-header p {
  color: var(--text-secondary);
  margin: 0;
}

.chats-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
}

.user-chat-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-chat-item:hover {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.chat-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.chat-item-header h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin: 0;
}

.chat-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.chat-status.success {
  background: #dcfce7;
  color: #166534;
}

.chat-status.info {
  background: #dbeafe;
  color: #1e40af;
}

.chat-status.warning {
  background: #fef3c7;
  color: #92400e;
}

.chat-item-meta {
  margin-bottom: 0.5rem;
}

.last-activity {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.chat-item-preview {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-style: italic;
}

.chat-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.chat-actions .btn-primary,
.chat-actions .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.no-chats {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

.no-chats i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.section-divider {
  text-align: center;
  margin: 3rem 0;
  padding: 1.5rem 0;
  border-top: 2px solid var(--border-color);
}

.section-divider h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.section-divider p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Website Card Pricing Styles */
.website-card {
  position: relative;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.website-pricing {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  text-align: center;
}

.price-original {
  text-decoration: line-through;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.price-discounted,
.price-final {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.website-pricing small {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.btn-buy {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn-buy:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-buy i {
  font-size: 1rem;
}

.website-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.website-chat-history-section {
  margin-bottom: 3rem;
}

.featured-card {
  border: 2px solid var(--primary-color);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.02) 100%);
}

.chat-history-header {
  margin-bottom: 1.5rem;
}

.chat-history-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.chat-history-header p {
  color: var(--text-secondary);
  margin: 0;
}

/* Billing Table Styles */
.billing-table-container {
  overflow-x: auto;
  margin-top: 1rem;
}

.billing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
}

.billing-table thead {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-color);
}

.billing-table th {
  padding: 1rem;
  text-align: left;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.billing-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.billing-table tbody tr:hover {
  background: var(--bg-secondary);
}

.billing-type {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.billing-amount {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.billing-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.billing-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.billing-status.approved {
  background: #d1fae5;
  color: #065f46;
}

.billing-status.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.billing-status.processing {
  background: #dbeafe;
  color: #1e40af;
}

/* Payment Instructions Styles */
.pending-purchase-notice {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}

.pending-purchase-notice i {
  font-size: 1.5rem;
}

.payment-instructions-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.instruction-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.instruction-item:hover {
  background: var(--bg-tertiary);
  transform: translateX(4px);
}

.instruction-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.instruction-text h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.instruction-text p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.payment-links {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border-color);
}

.payment-links h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payment-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.payment-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 112, 186, 0.3);
  background: linear-gradient(135deg, #003087 0%, #001f5b 100%);
}

.payment-link i {
  font-size: 1.5rem;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

/* Responsive Design for Website Marketplace */
@media (max-width: 768px) {
  .website-grid {
    grid-template-columns: 1fr;
  }

  .website-actions {
    flex-direction: column;
  }

  .chat-actions {
    flex-direction: column;
  }

  .chat-actions .btn-primary,
  .chat-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .user-chat-item {
    padding: 0.75rem;
  }

  .chat-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .website-info {
    padding: 1rem;
  }

  .website-pricing {
    margin: 1rem 0;
  }

  .chats-list {
    max-height: 300px;
  }

  .featured-card {
    margin: 0 -1rem;
    border-radius: 0;
  }
}

/* Domain Availability Search Section */
.domain-availability-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.domain-availability-section h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.domain-availability-section p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.domain-search-container {
  max-width: 100%;
}

.domain-search-input {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.domain-search-input input {
  flex: 2;
  min-width: 200px;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.domain-search-input input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.domain-search-input select {
  flex: 1;
  min-width: 120px;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.domain-search-input select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-search-domain {
  flex: 1;
  min-width: 160px;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-search-domain:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-search-domain:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.domain-results {
  min-height: 60px;
}

.checking-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  color: var(--text-secondary);
  font-style: italic;
}

.domain-result {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  transition: all 0.3s ease;
}

.domain-result.available {
  border-color: #22c55e;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(34, 197, 94, 0.1));
}

.domain-result.unavailable {
  border-color: #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0.1));
}

.domain-result.error {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(245, 158, 11, 0.1));
}

.domain-result-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.domain-result-header i {
  font-size: 1.5rem;
}

.domain-result.available i {
  color: #22c55e;
}

.domain-result.unavailable i {
  color: #ef4444;
}

.domain-result.error i {
  color: #f59e0b;
}

.domain-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  flex: 1;
  /* Added mobile overflow protection for long domain names */
  word-break: break-all;
  overflow-wrap: break-word;
  max-width: 100%;
}

.domain-status {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.domain-result.available .domain-status {
  background: #22c55e;
  color: white;
}

.domain-result.unavailable .domain-status {
  background: #ef4444;
  color: white;
}

.confidence-indicator {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.check-method {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
}

.domain-disclaimer {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid var(--primary-color);
  padding: 0.75rem;
  margin: 1rem 0;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.domain-disclaimer i {
  color: var(--primary-color);
  margin-top: 0.2rem;
}

.domain-disclaimer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.domain-disclaimer strong {
  color: var(--text-primary);
}

.domain-actions {
  margin-top: 1rem;
}

.btn-register-domain {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-register-domain:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.domain-suggestions {
  margin-top: 1rem;
}

.domain-suggestions p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.alternative-domains {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-alternative {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-alternative:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-retry {
  background: #f59e0b;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 1rem;
  transition: all 0.3s ease;
}

.btn-retry:hover {
  background: #d97706;
}

/* Domain Plans Section */
.domain-plans-section {
  margin-top: 2rem;
}

.domain-plans-section h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Enhanced Settings Buttons */
.settings-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-deactivate {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.btn-deactivate:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-delete {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.btn-delete:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Enhanced Template Search and Filters */
.template-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.template-search {
  flex: 2;
  min-width: 250px;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.template-search:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.template-filter {
  flex: 1;
  min-width: 150px;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.template-filter:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }

  .nav-container {
    padding: 0 12px;
    gap: 0.5rem;
    min-height: 60px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  /* Force user info to always be visible in mobile */
  .nav-user {
    display: flex !important;
    flex-shrink: 0;
    min-width: 0;
    gap: 0.5rem;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .user-info {
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    min-width: 0;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .user-info span {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #userName {
    font-weight: 600;
    color: var(--text-primary);
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .tier-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .tier-badge.premium {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
  }

  .tier-badge.standard {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  }

  .tier-badge.free {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  }

  /* Adjust logo for mobile */
  .nav-logo h2 {
    font-size: 1.2rem;
  }

  .nav-logo img {
    width: 24px;
    height: 24px;
  }

  .dashboard-container {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    padding: 1rem;
  }

  .sidebar-menu .menu-item {
    min-width: 150px;
    text-align: center;
  }

  .dashboard-main {
    padding: 1rem;
  }

  .user-dropdown {
    right: 10px;
    top: 50px;
    min-width: 140px;
  }

  .domain-search-input {
    flex-direction: column;
  }

  .domain-search-input input,
  .domain-search-input select,
  .btn-search-domain {
    flex: none;
    width: 100%;
  }

  /* Enhanced mobile styles for domain results */
  .domain-result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .domain-name {
    font-size: 1rem;
    line-height: 1.3;
    word-break: break-all;
    hyphens: auto;
  }

  .domain-status {
    align-self: flex-start;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .domain-details {
    margin-top: 0.5rem;
  }

  .domain-details small {
    display: block;
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 0.5rem;
  }

  .nav-logo h2 {
    font-size: 1.1rem;
  }

  .user-info {
    display: none;
  }

  /* Ensure menu dropdown fits on small screens */
  .dashboard-menu-dropdown {
    left: 5px;
    right: 5px;
    top: 55px;
  }

  /* Extra small screen optimizations for domain names */
  .domain-name {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .domain-result {
    padding: 1rem;
  }

  .domain-result-header {
    gap: 0.4rem;
  }
}
/* Custom Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%),
              rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  animation: modalFadeIn 0.3s ease;
  overflow-y: auto;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  margin: 5% auto;
  padding: 0;
  border: none;
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  overflow-y: auto;
  overflow-x: hidden;
  animation: modalSlideIn 0.3s ease;
  position: relative;
}

@keyframes modalSlideIn {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-content h2 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  padding: 30px 30px 10px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.modal-content p {
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  padding: 0 30px 30px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-size: 14px;
}

.modal-content .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  line-height: 1;
  z-index: 1;
  transition: all 0.2s ease;
}

.modal-content .close:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.modal-content form {
  padding: 30px;
}

.modal-content .form-group {
  margin-bottom: 24px;
}

.modal-content .form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #2d3748;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-content .form-group label::before {
  content: '•';
  color: #667eea;
  font-size: 20px;
}

.modal-content .form-group input,
.modal-content .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  background: #ffffff;
  transition: all 0.3s ease;
}

.modal-content .form-group input:focus,
.modal-content .form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
  background: #fafbff;
}

.modal-content .form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid #e2e8f0;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-actions .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modal-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.modal-actions .btn-primary:active {
  transform: translateY(0);
}

.modal-actions .btn-secondary {
  background: #f7fafc;
  color: #4a5568;
  border: 2px solid #e2e8f0;
}

.modal-actions .btn-secondary:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

/* Buy Website Modal Specific Styles */
.buy-modal-content {
  padding: 30px;
}

.buy-modal-content p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
}

.buy-modal-content strong {
  color: var(--primary-color);
}

.purchase-includes {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.purchase-includes h4 {
  margin: 0 0 15px 0;
  color: var(--primary-color);
  font-size: 16px;
}

.purchase-includes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.purchase-includes li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.purchase-includes li i {
  color: #10b981;
  font-size: 18px;
}

.info-text {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid var(--primary-color);
  padding: 12px 15px;
  border-radius: 6px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Mobile Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 20px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn-primary,
  .modal-actions .btn-secondary {
    width: 100%;
  }
}
/* Template Card Button Styling and Gallery Styles */
.template-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.template-actions button {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
}

.btn-template-preview {
  background: #007bff;
  color: white;
}

.btn-template-preview:hover:not(.btn-disabled) {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-template-download {
  background: #28a745;
  color: white;
}

.btn-template-download:hover:not(.btn-disabled) {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #6c757d !important;
}

.access-notice {
  display: block;
  margin-top: 8px;
  color: #dc3545;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.image-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* Enhanced Template Preview Modal Styles - Full Screen Design */
#templatePreviewModal .modal-content {
  max-width: 95%;
  width: 95%;
  height: 90vh;
  margin: 2.5vh auto;
  overflow-y: auto;
  background: #1a1a2e;
}

.preview-content-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.preview-header {
  background: transparent;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.preview-header h2 {
  margin: 0;
  font-size: 24px;
  color: #fff;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.7);
  padding: 12px 20px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.preview-meta {
  display: none;
}

.preview-gallery {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  margin: 0;
  padding: 0;
  min-height: 60vh;
}

.preview-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-image-container img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  border: none;
  object-fit: contain;
}

.preview-info-section {
  background: #1a1a2e;
  padding: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-info-header {
  margin-bottom: 20px;
}

.preview-info-header h3 {
  margin: 0 0 8px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

.preview-info-title {
  margin: 0 0 16px 0;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.preview-meta-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.preview-meta-badges .template-tier,
.preview-meta-badges .template-category {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-description {
  padding: 0;
  margin-bottom: 20px;
}

.preview-description p {
  margin: 0 0 12px 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 15px;
}

.preview-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.preview-tag {
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.gallery-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.gallery-nav {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.gallery-nav.prev {
  left: 20px;
}

.gallery-nav.next {
  right: 20px;
}

.preview-thumbnails {
  display: none;
}

.preview-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 24px;
}

.preview-actions .btn-primary {
  background: #667eea;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.preview-actions .btn-primary:hover:not(.btn-disabled) {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.preview-actions .btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.preview-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
}
