/* =========================================
   1. GLOBAL RESET & BASE STYLES
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  background: #f8fafc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   2. LANDING PAGE / HERO SECTION
   ========================================= */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='grain' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='25' cy='25' r='1' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='75' cy='75' r='0.5' fill='rgba(255,255,255,0.05)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23grain)'/%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 800px;
  text-align: center;
  width: 100%;
}

.logo {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(45deg, #fff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tagline-enhanced {
  font-size: clamp(1.3rem, 4vw, 2rem) !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  letter-spacing: -0.01em !important;
  max-width: 700px !important;
  margin: 0 auto 2.5rem !important;
  line-height: 1.4 !important;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  justify-content: center;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 160px;
  justify-content: center;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.features {
  padding: 5rem 0;
  background: #f8fafc;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto 3rem;
}

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

.feature-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.demo {
  padding: 5rem 0;
  text-align: center;
}

.demo-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.list-demo {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.list-demo:hover {
  transform: translateY(-3px);
}

.list-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 1.25rem;
  font-weight: 600;
}

.list-items {
  padding: 1rem;
  max-height: 200px;
  overflow-y: auto;
}

.list-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.list-item:last-child {
  border-bottom: none;
}

.item-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.item-text {
  flex: 1;
  font-size: 0.95rem;
}

.footer {
  background: #1e293b;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

/* =========================================
   3. AUTH MODAL & FORMS
   ========================================= */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.auth-modal.active {
  display: flex;
}

.auth-container {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: slideUp 0.4s ease;
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #64748b;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.auth-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.auth-tab {
  flex: 1;
  padding: 1rem 0;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #64748b;
  position: relative;
}

.auth-tab.active {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #667eea !important;
  border-bottom: 3px solid #667eea !important;
  transform: translateY(-2px);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 1.5rem;
  background: rgba(102, 126, 234, 0.03);
  animation: formActiveGlow 0.3s ease;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
  font-size: 0.95rem;
}

/* Base Styles for Inputs */
.form-input, 
.add-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #fff;
  color: #334155;
  box-sizing: border-box; /* Critical for padding */
}

.form-input:focus, 
.add-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65rem auto;
}

.auth-submit {
  width: 100%;
  padding: 1.125rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-alert {
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border-left: 4px solid transparent;
}

.auth-alert-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
}

.auth-alert-text {
  margin: 0;
  font-size: 0.95rem;
}

.auth-alert-success {
  background: #d4edda;
  color: #155724;
  border-left-color: #28a745;
  text-align: center;
}

.auth-alert-error {
  background: #f8d7da;
  color: #721c24;
  border-left-color: #dc3545;
}

.auth-success-state {
  text-align: center;
  padding: 2rem 1.25rem;
  color: #64748b;
}

.auth-success-state.active {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.auth-success-title {
  color: #1e293b;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.auth-success-text {
  margin: 2.5rem 0;
  line-height: 1.6;
}

/* =========================================
   4. DASHBOARD LAYOUT & COMPONENTS
   ========================================= */
.dashboard-page {
  background: #f8fafc;
  min-height: 100vh;
}

.dashboard-header {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-title {
  font-size: 1.8rem;
  color: #1e293b;
  font-weight: 700;
}

.dashboard-subtitle {
  color: #6b7280;
  font-size: 0.95rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
}

.stat-caption {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.usage-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(102, 126, 234, 0.08);
  color: #4f46e5;
  margin-top: 0.35rem;
}

.item-count-badge {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    margin-left: 0.5rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
}

.upgrade-card {
  border: 1px dashed #e5e7eb;
}

.upgrade-text {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.dashboard-grid-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

/* Cards */
.recent-activity-card,
.list-overview-card,
.quick-action-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  height: 100%;
}

.quick-action-card {
    padding: 2rem;
    text-align: center;
}

.create-btn-large {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  margin-top: 1rem;
  text-decoration: none;
}

.create-btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
  color: white;
}

.ghost-btn {
  background: rgba(102, 126, 234, 0.05);
  color: #667eea;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  display: inline-block;
}

.ghost-btn:hover {
  background: rgba(102, 126, 234, 0.1);
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
  background: #e2e8f0 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
}

.ghost-btn.btn-disabled {
  background: transparent !important;
  color: #cbd5e1 !important;
  border: 1px solid #e2e8f0;
}

/* =========================================
   5. LIST ITEMS & ACTIVITY FEED
   ========================================= */
.activity-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 1.5rem;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activity-list {
  padding: 0;
}

.activity-item {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: background 0.2s;
}

.activity-item:hover {
  background: #f8fafc;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item a {
  text-decoration: none;
  color: inherit;
  flex: 1;
  display: flex;
  gap: 1rem;
}

.checkbox-preview {
  width: 24px;
  height: 24px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  margin-top: 2px;
}

.activity-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.activity-meta {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Activity Icons */
.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.icon-created { background: #dcfce7; color: #166534; }
.icon-updated { background: #dbeafe; color: #1e40af; }
.icon-deleted { background: #fee2e2; color: #991b1b; }
.icon-completed { background: #f3e8ff; color: #6b21a8; }

/* =========================================
   6. GIFT LIST FEATURES
   ========================================= */
.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.gift-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.gift-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.gift-image-area {
    height: 180px;
    background: #f8fafc;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gift-placeholder {
    font-size: 3rem;
    opacity: 0.2;
}

.gift-content {
    padding: 1.25rem;
}

.gift-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.gift-comment {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.gift-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-gift-link {
    flex: 1;
    text-align: center;
    background: #e0f2fe;
    color: #0284c7;
    padding: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-gift-link:hover {
    background: #bae6fd;
}

/* Checkbox overlay for Gift Cards */
.gift-check-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gift-card.completed {
    opacity: 0.6;
}

.gift-card.completed::after {
    content: "PURCHASED";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    font-weight: bold;
    border-radius: 8px;
    pointer-events: none;
}

/* Secret Mode Completed Style */
.gift-card.secret-completed {
    background: #fdf4ff; /* Light purple tint */
    border-color: #d8b4fe;
}

.gift-card.secret-completed::after {
    content: "GOT IT!";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(147, 51, 234, 0.9); /* Purple */
    color: white;
    padding: 0.5rem 1rem;
    font-weight: bold;
    border-radius: 8px;
    pointer-events: none;
    z-index: 10;
}

/* =========================================
   7. GIFT ADD FORM & INPUTS (RESPONSIVE)
   ========================================= */

/* The container for the add form */
.gift-add-form {
    padding: 2rem;
    background: #f8fafc; /* Light gray background */
    border-top: 1px solid #e2e8f0;
}

/* Grid layout for the form inputs */
.gift-form-layout {
    display: grid;
    gap: 1rem;
}

/* Responsive Row: Stack on mobile, side-by-side on desktop */
.gift-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr; /* Default: Stacked (Mobile) */
}

@media (min-width: 640px) { /* Tablet/Desktop */
    .gift-row {
        grid-template-columns: 1fr 1fr; /* Side-by-side */
    }
}

/* File Upload Box Styling */
.file-input-wrapper {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.file-input-wrapper:hover {
    border-color: #667eea;
    background: #fcfaff; /* Very light purple tint on hover */
}

/* Add Button Styling - Matching Theme */
.btn-add {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2); /* Theme Gradient */
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%; /* Full width on mobile */
    justify-self: start;
    text-align: center;
}

@media (min-width: 640px) {
    .btn-add {
        width: auto; /* Auto width on desktop */
        padding: 0.75rem 3rem;
    }
}

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

/* Standard Add Bar (for Grocery/Task Lists) */
.add-item-bar {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.add-item-form {
    display: flex;
    gap: 1rem;
}

/* =========================================
   8. COLLABORATION & COMMENTS
   ========================================= */
.gift-actions-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.action-row {
    display: flex;
    gap: 0.5rem;
}

.btn-mark-purchased {
    flex: 1;
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 0.6rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-mark-purchased:hover:not(:disabled) {
    border-color: #10b981;
    color: #10b981;
    background: #ecfdf5;
}

.btn-mark-purchased.active {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.btn-mark-purchased:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #f1f5f9;
    border-color: #f1f5f9;
}

.btn-comments {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.btn-comments:hover {
    background: #f8fafc;
    color: #334155;
}

.comment-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.claim-status {
    font-size: 0.85rem;
    padding: 0.5rem;
    background: #ecfdf5;
    color: #065f46;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.comments-section {
    display: none;
    background: #f8fafc;
    margin: 0 -1.25rem -1.25rem -1.25rem;
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}

.comments-section.open {
    display: block;
}

.comments-list {
    max-height: 150px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-bubble {
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.comment-form {
    display: flex;
    gap: 0.5rem;
}

.comment-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
}

.btn-send-comment {
    background: #6366f1;
    color: white;
    border: none;
    padding: 0 0.8rem;
    border-radius: 6px;
    cursor: pointer;
}

.secret-badge {
    background: #f3e8ff;
    color: #7e22ce;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    margin-left: 0.5rem;
    border: 1px solid #d8b4fe;
}

.interaction-note {
    color: #64748b;
    font-style: italic;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =========================================
   9. DASHBOARD MODALS (Create, Share, Edit)
   ========================================= */
.dashboard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    
    /* Enable scrolling for tall content */
    overflow-y: auto;
    align-items: flex-start; 
    padding: 2rem 1rem;
}

.dashboard-modal.active {
    display: flex;
    opacity: 1;
}

.dashboard-modal-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* Vertical spacing */
    margin: auto; 
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.dashboard-modal.active .dashboard-modal-content {
    transform: translateY(0);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-desc {
    color: #64748b;
    font-size: 0.95rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.btn-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel:hover {
    background: #e2e8f0;
    color: #475569;
}

.btn-confirm {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s;
}

.btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

/* Shared User List in Share Modal */
.shared-users-list {
    margin-top: 1.5rem;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.shared-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #334155;
}

.shared-user-item:last-child {
    border-bottom: none;
}

.btn-remove-share {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.5rem;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.btn-remove-share:hover {
    opacity: 1;
}

.share-modal-divider {
    margin: 1.5rem 0;
    height: 1px;
    background: #e2e8f0;
}

/* Edit & Delete Action Buttons */
.btn-delete-list, 
.btn-share-list, 
.btn-edit-item {
    background: transparent;
    border: none;
    opacity: 0.6;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.btn-delete-list { color: #ef4444; z-index: 2; }
.btn-share-list { color: #6366f1; z-index: 2; }
.btn-edit-item { color: #6366f1; }

.btn-delete-list:hover { opacity: 1 !important; background: #fee2e2; transform: scale(1.1); }
.btn-share-list:hover { opacity: 1 !important; background: #e0e7ff; transform: scale(1.1); }
.btn-edit-item:hover { opacity: 1 !important; background: #e0e7ff; transform: scale(1.1); }

.activity-item:hover .btn-delete-list,
.activity-item:hover .btn-share-list,
.gift-card:hover .btn-edit-item,
.single-list-item:hover .btn-edit-item,
.single-list-item:hover .btn-delete-list {
    opacity: 1;
}

/* Image Preview in Edit Modal */
.current-image-preview {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    display: block;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes formActiveGlow {
  0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.3); }
  50% { box-shadow: 0 0 20px 5px rgba(102, 126, 234, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fix for Task List Delete Button */
.btn-delete-item {
    background: transparent;
    border: none;
    color: #ef4444; /* Red */
    opacity: 0.4;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    line-height: 1;
}

.single-list-item:hover .btn-delete-item {
    opacity: 1;
}

.btn-delete-item:hover {
    background: #fee2e2; /* Light red background on hover */
    transform: scale(1.1);
}

/* --- Add to bottom of tiliap-ai.css --- */

/* Edit List Button Style (Dashboard) */
.btn-edit-list {
    background: transparent;
    border: none;
    color: #6366f1; /* Indigo - Matches Share Icon */
    opacity: 0.6;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 2;
    margin-right: 0.5rem;
}

.activity-item:hover .btn-edit-list {
    opacity: 1;
}

.btn-edit-list:hover {
    background: #e0e7ff; /* Light indigo background */
    transform: scale(1.1);
}