/* Dashboard-specific styles */

/* Dashboard Header Section */
.dashboard-header-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.dashboard-header-left h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--primary);
}

.dashboard-header-left .user-greeting {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin: 0;
}

.dashboard-header-left .user-greeting strong {
  color: var(--text);
}

.dashboard-header-right {
  display: flex;
  gap: 0.5rem;
}

@media screen and (max-width: 600px) {
  .dashboard-header-section {
    flex-direction: column;
  }
  
  .dashboard-header-right {
    width: 100%;
  }
  
  .dashboard-header-right .toolbar-btn {
    flex: 1;
    justify-content: center;
  }
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0 0 16px;
  list-style: none;
  font-size: 13px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.breadcrumb-item a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb-item a:hover {
  color: var(--accent);
}

.breadcrumb-item.active {
  color: var(--text);
  font-weight: 500;
}

.breadcrumb-separator {
  color: var(--border);
  margin: 0 2px;
}

dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0;
}

dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

dashboard-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  color: var(--primary);
}

dashboard-header .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--warning) 0%, #e67e22 100%);
  color: white;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  vertical-align: middle;
}

.premium-badge i {
  font-size: 8px;
}

.upgrade-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--warning) 0%, #e67e22 100%);
  border-radius: var(--radius);
  color: white;
  margin-bottom: 12px;
}

.upgrade-banner h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
}

.upgrade-banner p {
  margin: 0;
  opacity: 0.9;
  font-size: 13px;
}

.upgrade-banner .btn {
  background: white;
  color: var(--warning);
}

.upgrade-banner .btn:hover {
  background: var(--background-alt);
}

/* Removed - using horizontal strips instead */

/* Statistics Strip */
.stats-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(13, 62, 80, 0.03) 0%, rgba(43, 213, 0, 0.03) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.stats-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  flex: 1;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stat-item .stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.stats-strip-link {
  text-decoration: none;
  transition: all 0.2s ease;
}

.stats-strip-link:hover {
  background: linear-gradient(135deg, rgba(13, 62, 80, 0.06) 0%, rgba(43, 213, 0, 0.06) 100%);
  border-color: var(--accent);
}

.stats-strip-link .strip-label i {
  font-size: 11px;
  margin-left: 6px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.stats-strip-link:hover .strip-label i {
  opacity: 1;
  transform: translateX(2px);
}

/* Dashboard Grid */
dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

stat-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

stat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

stat-card label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

stat-card value {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

stat-card description {
  font-size: 14px;
  color: var(--text-light);
}

/* Cards */
card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
}

card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(13, 62, 80, 0.02) 0%, rgba(13, 62, 80, 0.04) 100%);
  border-bottom: 1px solid var(--border);
}

card > *:not(header) {
  padding: 20px 24px;
}

card > form {
  padding: 20px 24px;
}

/* Quick actions card should not have content padding */
.quick-actions-card > *:not(header) {
  padding: 0;
}

card header .btn {
  flex-shrink: 0;
}

card h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

card .subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
}

/* Tool Links */
/* Dashboard Toolbar */
.dashboard-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: white;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  gap: 2rem;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.dashboard-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.user-greeting {
  color: var(--text-light);
  font-size: 0.9rem;
}

.toolbar-right {
  display: flex;
  gap: 0.5rem;
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--background-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.toolbar-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.toolbar-btn.danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.toolbar-btn i {
  font-size: 0.875rem;
}

/* Quick Actions Ribbon */
.quick-actions-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.quick-actions-card header {
  display: none;
}

.quick-actions-grid {
  display: flex;
  align-items: stretch;
}

.quick-action-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s ease;
}

.quick-action-item:last-child {
  border-right: none;
}

.quick-action-item:hover {
  background: var(--background-alt);
  color: var(--accent);
}

.quick-action-item.highlight {
  color: var(--accent);
}

.action-icon {
  display: flex;
  align-items: center;
  position: relative;
}

.action-icon i {
  font-size: 15px;
  color: var(--accent);
}

.notification-dot {
  position: absolute;
  top: -4px;
  right: -6px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
}

.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9px;
  margin-left: 6px;
}

.action-content h4 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  color: inherit;
}

.action-content p {
  display: none;
}

@media screen and (max-width: 768px) {
  .dashboard-toolbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
  }
  
  .toolbar-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .toolbar-right {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .toolbar-btn {
    flex: 1;
    justify-content: center;
  }
  
  .quick-actions-grid {
    flex-wrap: wrap;
  }
  
  .quick-action-item {
    flex: 1;
    min-width: 50%;
    border-bottom: 1px solid var(--border);
    justify-content: center;
  }
  
  .quick-action-item:nth-child(even) {
    border-right: none;
  }
}

/* Link List */
link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

link-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

link-item .link-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  min-width: 0;
}

link-item .link-url {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

link-item .link-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
}

link-item .link-category {
  display: inline-flex;
  padding: 2px 8px;
  background: var(--background-alt);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

link-item .link-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

link-item .link-actions a {
  padding: 8px 16px;
  font-size: 13px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-weight: 500;
}

/* Edit link - Brand Green */
link-item .link-actions a[href*="manage-link"] {
  background: #dcfce7;
  color: #166534;
}

link-item .link-actions a[href*="manage-link"]:hover {
  background: #2BD500;
  color: white;
}

/* Archive & Restore links - Gray */
link-item .link-actions a[href*="archive"],
link-item .link-actions a[href*="restore"] {
  background: #f3f4f6 !important;
  color: #374151 !important;
}

link-item .link-actions a[href*="archive"]:hover,
link-item .link-actions a[href*="restore"]:hover {
  background: #6b7280 !important;
  color: white !important;
}

/* Delete link - Red */
link-item .link-actions a[href*="delete"] {
  background: #fee2e2;
  color: #dc2626;
}

link-item .link-actions a[href*="delete"]:hover {
  background: #b91c1c;
  color: white !important;
}

/* Reorder Buttons */
.reorder-btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-right: 8px;
}

.reorder-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--background-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 16px;
  color: var(--text-light);
}

.reorder-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Theme Selector */
theme-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

theme-option:hover {
  border-color: var(--accent);
}

theme-option.active {
  border-color: var(--accent);
  background: rgba(2, 181, 32, 0.05);
}

theme-option .theme-preview {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

theme-option .theme-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* Empty State */
empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

empty-state icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
  color: var(--text-light);
}

empty-state icon i {
  color: var(--text-light);
}

empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

empty-state p {
  margin: 0 0 24px;
  max-width: 400px;
}

/* Inbox Badge */
.inbox-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--danger);
  color: white;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}

/* QR Code Display */
qr-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--background-alt);
  border-radius: var(--radius);
}

qr-display img {
  width: 200px;
  height: 200px;
  padding: 16px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Responsive */
@media screen and (max-width: 768px) {
  dashboard-grid {
    grid-template-columns: 1fr;
  }

  dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-actions-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .strip-label {
    min-width: auto;
  }

  .quick-actions-row {
    width: 100%;
  }

  .stats-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .stats-row {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  link-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }

  link-item .reorder-btns {
    position: absolute;
    top: 12px;
    right: 12px;
    flex-direction: row;
    gap: 8px;
  }

  link-item .reorder-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  link-item .link-content {
    flex: 1;
    padding-right: 70px; /* Space for reorder buttons */
  }

  link-item .link-url {
    font-size: 14px;
    word-break: break-all;
    line-height: 1.4;
  }

  link-item .link-meta {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
  }

  link-item .link-category {
    font-size: 11px;
  }

  link-item .link-clicks {
    font-size: 11px;
  }

  link-item .link-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
  }

  link-item .link-actions a {
    padding: 10px 8px;
    text-align: center;
    justify-content: center;
    font-size: 12px;
  }

  /* Archived links mobile */
  link-item.archived-link .link-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .upgrade-banner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 20px 16px;
  }

  .upgrade-banner h3 {
    font-size: 1.1rem;
  }

  .upgrade-banner p {
    font-size: 14px;
  }

  /* Card padding on mobile */
  card {
    margin-bottom: 16px;
  }

  card header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  card header .btn {
    width: 100%;
    justify-content: center;
  }

  card > *:not(header) {
    padding: 16px;
  }

  link-list {
    gap: 12px;
    padding: 0 16px 16px;
  }

  /* Empty state mobile */
  empty-state {
    padding: 32px 16px;
  }

  empty-state icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  empty-state h3 {
    font-size: 1.1rem;
  }

  /* Quick actions mobile */
  .quick-actions-card header {
    padding: 16px;
  }

  .quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .quick-action-item {
    padding: 12px;
  }

  .action-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .action-content h4 {
    font-size: 13px;
  }

  .action-content p {
    font-size: 11px;
  }

  /* Stats strip mobile */
  .stats-strip {
    padding: 16px;
  }

  .stat-item {
    flex-direction: row;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
  }

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

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 13px;
  }

  /* Dashboard header mobile */
  .dashboard-header-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
  }

  .dashboard-header-right {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .toolbar-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
  }

  .dashboard-title {
    font-size: 1.5rem;
  }

  .user-greeting {
    font-size: 14px;
  }

  .premium-badge {
    font-size: 10px;
    padding: 2px 6px;
  }

  /* Violation warning mobile */
  .violation-warning {
    padding: 16px;
    margin-bottom: 16px;
  }

  .violation-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .quick-action-item {
    flex-direction: row;
    text-align: left;
  }

  link-item .link-actions {
    grid-template-columns: 1fr;
  }

  link-item.archived-link .link-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-header-right {
    flex-direction: column;
  }

  .toolbar-btn {
    width: 100%;
  }
}

/* ============================================
   QR CODE PAGE STYLES
   ============================================ */

.qr-code-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}

.qr-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: rgba(var(--primary-rgb), 0.05);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
}

.qr-preview img {
  max-width: 100%;
  height: auto;
  display: block;
}

.qr-info h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.url-display {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.url-display input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: monospace;
  background: var(--background-alt);
}

.qr-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.qr-usage {
  padding: 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
}

.qr-usage h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qr-usage ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qr-usage li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.qr-usage li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.25rem;
}

@media screen and (max-width: 768px) {
  .qr-code-section {
    grid-template-columns: 1fr;
  }
  
  .qr-preview {
    padding: 1.5rem;
  }
}

/* ============================================
   ALERT/SUCCESS MESSAGE STYLES
   ============================================ */

.alert, .alert-success, .success-banner {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ============================================
   ANALYTICS STYLES
   ============================================ */

.link-clicks {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: #f0fdf4;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #166534;
  font-weight: 600;
}

.link-clicks i {
  font-size: 11px;
}

/* ============================================
   INBOX / MESSAGES STYLES
   ============================================ */

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-item {
  padding: 1.25rem;
  background: var(--background-alt);
  border-radius: var(--radius);
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
}

.message-item.unread {
  border-left-color: var(--accent);
  background: rgba(var(--primary-rgb), 0.05);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.message-sender {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.message-sender i {
  color: var(--accent);
  font-size: 1.25rem;
}

.message-sender strong {
  font-size: 1rem;
  color: var(--text);
}

.message-email {
  color: var(--text-light);
  font-size: 0.875rem;
}

.message-date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-light);
  white-space: nowrap;
}

.message-content {
  padding: 1rem;
  background: white;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.message-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.msg-action {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--text);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.msg-action:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.msg-action.danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}

@media screen and (max-width: 768px) {
  .message-header {
    flex-direction: column;
  }
  
  .message-actions {
    flex-direction: column;
  }
  
  .msg-action {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   ARCHIVED LINKS STYLES
   ============================================ */

.archived-link {
  opacity: 0.7;
  background: white;
}

.archived-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-light);
}

/* ============================================
   LINK SCHEDULING STYLES
   ============================================ */

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--text);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.checkbox-label span i {
  color: var(--accent);
  font-size: 0.875rem;
}

/* ============================================
   LINK SCHEDULING STYLES (CONTINUED)
   ============================================ */

.schedule-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.schedule-section h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-description {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media screen and (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SETTINGS TABS & SECTIONS
   ============================================ */

.settings-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.settings-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-light);
  font-size: 0.938rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.settings-tab:hover {
  color: var(--text);
  background: rgba(var(--primary-rgb), 0.05);
}

.settings-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.settings-tab i {
  font-size: 1rem;
}

.settings-section-content {
  animation: fadeIn 0.3s ease;
}

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

/* Settings Grid - 3 Column Ribbon Style */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.setting-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}

.setting-card:hover {
  border-color: var(--accent);
}

.setting-card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.setting-card-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.setting-card-icon i {
  font-size: 0.9375rem;
  color: var(--accent);
}

.setting-card-content {
  flex: 1;
  min-width: 0;
}

.setting-card h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.setting-card p {
  font-size: 0.6875rem;
  color: var(--text-light);
  margin: 0.125rem 0 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.setting-card-arrow {
  color: var(--text-light);
  font-size: 0.625rem;
  flex-shrink: 0;
}

.setting-card:hover .setting-card-arrow {
  color: var(--accent);
}

@media screen and (max-width: 900px) {
  .settings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

/* Legacy settings list (keeping for backward compatibility) */
.settings-list {
  display: flex;
  flex-direction: column;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-row.disabled {
  opacity: 0.6;
}

.setting-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.setting-info > i {
  font-size: 1.5rem;
  color: var(--accent);
  width: 32px;
  text-align: center;
}

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

.setting-info p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 28px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

@media screen and (max-width: 768px) {
  .setting-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .setting-info {
    width: 100%;
  }
}

/* ============================================
   MANAGEMENT PAGES STYLES
   ============================================ */

/* Page Header */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-header h1 i {
  color: var(--accent);
}

.page-header p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Info Cards */
.info-card {
  background: #f0fdf4; /* Light green from brand */
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.info-card p {
  margin: 0;
}

.info-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.info-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.info-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.info-header i {
  color: var(--accent);
}

.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.card-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Settings Sections */
.settings-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  color: var(--accent);
}

/* Old setting styles removed - see Settings Grid section above */

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-premium {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
}

.badge-free {
  background: var(--background-alt);
  color: var(--text-light);
  border: 1px solid var(--border);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

/* Text Links */
.text-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: 1rem;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.text-link i {
  margin-right: 0.25rem;
}

.text-danger {
  color: var(--danger);
}

.text-danger:hover {
  color: #dc2626;
}

/* Character Counter */
.character-count {
  text-align: right;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.current-value {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--background-alt);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

/* Avatar Management */
.avatar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .avatar-layout {
    grid-template-columns: 200px 1fr;
  }
}

.current-avatar-section h4,
.upload-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.current-avatar-section {
  text-align: center;
}

.current-avatar-section .note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.avatar-preview {
  text-align: center;
}

.avatar-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(13, 62, 80, 0.15);
}

.avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin: 0 auto;
  border: 4px solid rgba(13, 62, 80, 0.15);
}

.file-upload-label {
  display: block;
  cursor: pointer;
}

.file-upload-label input[type="file"] {
  display: none;
}

.file-upload-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background 0.2s ease;
}

.file-upload-button:hover {
  background: var(--accent-hover);
}

.file-name {
  display: inline-block;
  margin-left: 1rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.upload-requirements {
  margin-bottom: 1.25rem;
}

.upload-requirements h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.upload-requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.upload-requirements li {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  padding-left: 1rem;
  position: relative;
}

.upload-requirements li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #22c55e;
}

.upload-requirements li:last-child {
  margin-bottom: 0;
}

/* Help Section */
.help-section {
  background: var(--background-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

.help-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.help-section h3 i {
  color: #fbbf24;
}

.tip-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tip-list li {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.tip-list li:last-child {
  margin-bottom: 0;
}

.tip-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.tip-list li strong {
  color: var(--text);
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* Alert mobile styles */
@media (max-width: 768px) {
  .alert {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.5rem;
  }
  
  .alert i {
    margin-bottom: 0.25rem;
  }
}

/* Delete Link Specific Styles */
.delete-preview {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.link-anchor-preview {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-light);
}

.delete-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-danger {
  background: var(--danger);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Success Banner */
.success-banner {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideDown 0.3s ease-out;
}

.success-banner i {
  font-size: 1.25rem;
  color: #10b981;
}

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

@keyframes slideUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-5px);
    opacity: 0.7;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================
   THEME SELECTOR (background.html)
   ============================================ */

.themes-container {
  margin: 2rem 0;
}

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

.theme-card {
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--background);
}

.theme-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Currently active theme (saved in database) */
.theme-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 213, 0, 0.15);
}

/* Theme that user just clicked (pending save) */
.theme-card:has(input:checked) {
  border-color: var(--accent);
  border-width: 3px;
  box-shadow: 0 0 0 4px rgba(43, 213, 0, 0.2);
  transform: scale(1.02);
}

/* Selection indicator */
.theme-card:has(input:checked)::after {
  content: 'Selected';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-card.locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.theme-card.locked:hover {
  transform: none;
  border-color: var(--border);
}

.theme-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-preview {
  width: 100%;
  height: 130px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
}

.theme-preview.locked-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  font-size: 2rem;
  color: #6b7280;
  padding-top: 0;
}

/* Mini avatar circle */
.preview-header {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-bottom: 8px;
  flex-shrink: 0;
}

/* Preview body with link items */
.preview-body {
  width: 85%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}

/* Preview link items */
.preview-line {
  height: 14px;
  border-radius: 4px;
  width: 100%;
}

.preview-line.short {
  width: 85%;
  margin: 0 auto;
}

/* Theme Preview Colors - Matching profile.css exactly */

/* Light Theme - Default brand look */
.light-theme {
  background: #ffffff;
}
.light-theme .preview-header {
  background: #0D3E50; /* Brand dark teal avatar */
}
.light-theme .preview-body {
  background: #ffffff;
}
.light-theme .preview-line {
  background: #ffffff;
  border: 1px solid #e2e8ed;
}

/* Dark Theme - Brand dark teal */
.dark-theme {
  background: #0D3E50;
}
.dark-theme .preview-header {
  background: #2BD500; /* Green avatar for dark */
}
.dark-theme .preview-body {
  background: #0D3E50;
}
.dark-theme .preview-line {
  background: #164a5e;
  border: 1px solid #1d5a70;
}

/* Ocean Theme */
.ocean-theme {
  background: #f0f9ff;
}
.ocean-theme .preview-header {
  background: #0ea5e9;
}
.ocean-theme .preview-body {
  background: #f0f9ff;
}
.ocean-theme .preview-line {
  background: #ffffff;
  border: 1px solid #bae6fd;
}

/* Forest Theme */
.forest-theme {
  background: #f0fdf4;
}
.forest-theme .preview-header {
  background: #22c55e;
}
.forest-theme .preview-body {
  background: #f0fdf4;
}
.forest-theme .preview-line {
  background: #ffffff;
  border: 1px solid #bbf7d0;
}

/* Sunset Theme */
.sunset-theme {
  background: #fffbeb;
}
.sunset-theme .preview-header {
  background: #f59e0b;
}
.sunset-theme .preview-body {
  background: #fffbeb;
}
.sunset-theme .preview-line {
  background: #ffffff;
  border: 1px solid #fde68a;
}

/* Purple Theme */
.purple-theme {
  background: #faf5ff;
}
.purple-theme .preview-header {
  background: #a855f7;
}
.purple-theme .preview-body {
  background: #faf5ff;
}
.purple-theme .preview-line {
  background: #ffffff;
  border: 1px solid #e9d5ff;
}

/* Gray Theme */
.gray-theme {
  background: #f9fafb;
}
.gray-theme .preview-header {
  background: #6b7280;
}
.gray-theme .preview-body {
  background: #f9fafb;
}
.gray-theme .preview-line {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

/* Red Theme */
.red-theme {
  background: #fef2f2;
}
.red-theme .preview-header {
  background: #ef4444;
}
.red-theme .preview-body {
  background: #fef2f2;
}
.red-theme .preview-line {
  background: #ffffff;
  border: 1px solid #fecaca;
}

/* Midnight Theme - Deep dark */
.midnight-theme {
  background: #0d1117;
}
.midnight-theme .preview-header {
  background: #58a6ff;
}
.midnight-theme .preview-body {
  background: #0d1117;
}
.midnight-theme .preview-line {
  background: #161b22;
  border: 1px solid #30363d;
}

.theme-info {
  text-align: center;
}

.theme-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.theme-info p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

.theme-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ============================================
   UPGRADE PAGE (upgrade.html)
   ============================================ */

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

.plan-card {
  background: var(--background-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: all 0.2s ease;
}

.plan-card:hover {
  box-shadow: var(--shadow);
}

.premium-plan {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 181, 32, 0.1);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow);
}

.plan-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.plan-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.plan-price .price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
}

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

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-features .feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.plan-features .feature i {
  color: var(--accent);
  flex-shrink: 0;
}

.plan-features .feature.disabled {
  color: var(--text-light);
  opacity: 0.6;
}

.plan-features .feature.disabled i {
  color: var(--text-light);
}

.plan-cta {
  margin-top: 2rem;
  text-align: center;
}

.btn-premium {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #019518);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.upgrade-benefits {
  margin: 4rem 0;
}

.upgrade-benefits h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  background: var(--background-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.benefit-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), #019518);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
  color: white;
}

.benefit-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

.upgrade-faq {
  margin: 4rem 0;
}

.upgrade-faq h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background: var(--background-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.faq-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.faq-item p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.back-link {
  margin-top: 3rem;
  text-align: center;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

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

.modal-content {
  background-color: var(--background);
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--background-alt);
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

.modal-body .form-group {
  margin-bottom: 20px;
}

.modal-body .form-group:last-child {
  margin-bottom: 0;
}

.modal-warning {
  margin-top: 16px;
  padding: 12px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.modal-warning i {
  color: #f59e0b;
  margin-top: 2px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--background-alt);
  border-radius: 0 0 var(--radius) var(--radius);
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-top: 12px;
}

/* Modal responsive */
@media screen and (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .modal-header {
    padding: 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-footer {
    padding: 16px 20px;
  }
}

/* =========================================
   Analytics Page Styles
   ========================================= */

.date-filter {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: var(--background-alt);
  border-color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.analytics-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.analytics-stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-icon.views {
  background: rgba(13, 62, 80, 0.1);
  color: var(--primary);
}

.stat-icon.clicks {
  background: rgba(43, 213, 0, 0.1);
  color: var(--accent);
}

.stat-icon.ctr {
  background: rgba(251, 191, 36, 0.1);
  color: #f59e0b;
}

.stat-icon.avg {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-info .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.stat-info .stat-label {
  font-size: 13px;
  color: var(--text-light);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.chart-container {
  padding: 20px;
  min-height: 250px;
}

.chart-container canvas {
  max-height: 250px;
}

.no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--text-light);
  text-align: center;
}

.no-data i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.3;
}

.no-data-small {
  padding: 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

.breakdown-list {
  padding: 16px 20px;
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.breakdown-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 100px;
  font-size: 14px;
  color: var(--text);
}

.breakdown-label i {
  width: 20px;
  color: var(--text-light);
}

.breakdown-bar-container {
  flex: 1;
  height: 8px;
  background: var(--background-alt);
  border-radius: 4px;
  overflow: hidden;
}

.breakdown-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.breakdown-value {
  min-width: 80px;
  text-align: right;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.top-links-list {
  padding: 16px 20px;
}

.top-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.top-link-item .rank {
  width: 24px;
  height: 24px;
  background: var(--background-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
}

.top-link-item:nth-child(1) .rank {
  background: #fef3c7;
  color: #92400e;
}

.top-link-item:nth-child(2) .rank {
  background: #e5e7eb;
  color: #374151;
}

.top-link-item:nth-child(3) .rank {
  background: #fed7aa;
  color: #9a3412;
}

.top-link-item .link-info {
  flex: 1;
  min-width: 0;
}

.top-link-item .link-url {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-link-item .click-count {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

/* Hourly Chart */
.hourly-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 20px;
  height: 180px;
}

.hour-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.hour-bar {
  width: 100%;
  max-width: 24px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  border-radius: 4px 4px 0 0;
  transition: height 0.3s ease;
  min-height: 2px;
}

.hour-bar-container:hover .hour-bar {
  opacity: 0.8;
}

.hour-label {
  font-size: 9px;
  color: var(--text-light);
  margin-top: 6px;
  white-space: nowrap;
}

/* Basic stats for free users */
.basic-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px 20px;
  border-bottom: 1px solid var(--border);
}

.basic-stat {
  display: flex;
  align-items: center;
  gap: 16px;
}

.basic-stat i {
  font-size: 32px;
  color: var(--primary);
  opacity: 0.6;
}

.basic-stat div {
  display: flex;
  flex-direction: column;
}

.basic-stat strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.basic-stat span {
  font-size: 13px;
  color: var(--text-light);
}

.premium-teaser {
  padding: 32px;
  text-align: center;
}

.premium-teaser h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 12px;
}

.premium-teaser h3 i {
  color: var(--accent);
  margin-right: 8px;
}

.premium-teaser > p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.premium-teaser ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: inline-block;
  text-align: left;
}

.premium-teaser ul li {
  padding: 8px 0;
  color: var(--text);
  font-size: 14px;
}

.premium-teaser ul li i {
  color: var(--accent);
  margin-right: 8px;
}

/* Analytics Responsive */
@media screen and (max-width: 1024px) {
  .analytics-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .date-filter {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  
  .filter-btn {
    white-space: nowrap;
  }
  
  .analytics-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hourly-chart {
    overflow-x: auto;
    padding-bottom: 12px;
  }
  
  .hour-bar-container {
    min-width: 20px;
  }
  
  .basic-stats {
    flex-direction: column;
    gap: 24px;
  }
}

/* Violation Warning Banner */
.violation-warning {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.violation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dc2626;
  font-size: 16px;
  margin-bottom: 12px;
}

.violation-header i {
  font-size: 20px;
}

.violation-warning > p {
  color: #7f1d1d;
  font-size: 14px;
  margin: 0 0 12px 0;
}

.violation-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.violation-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: white;
  border: 1px solid #fecaca;
  border-radius: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.violation-link {
  font-family: monospace;
  font-size: 13px;
  color: var(--text);
  flex: 1;
  min-width: 200px;
}

.violation-reason {
  font-size: 12px;
  color: #dc2626;
  font-style: italic;
}

.violation-badge-flagged {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.violation-badge-removed {
  background: #fee2e2;
  color: #dc2626;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.violation-appeal {
  font-size: 13px;
  color: #7f1d1d;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid #fecaca;
}

.violation-appeal a {
  color: #dc2626;
  font-weight: 600;
}

