/* ============================================================
   BIOTOO COMPONENTS
   Buttons, Cards, Forms, Badges, Alerts, etc.
   ============================================================ */

/* ==================== BUTTONS ==================== */
.bt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--bt-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: none;
  border-radius: var(--bt-radius-lg);
  cursor: pointer;
  transition: var(--bt-transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}

.bt-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.bt-btn:hover::before {
  left: 100%;
}

.bt-btn:active {
  transform: scale(0.97);
}

/* Button Sizes */
.bt-btn-sm {
  padding: 10px 22px;
  font-size: 13px;
  border-radius: var(--bt-radius-md);
}

.bt-btn-lg {
  padding: 18px 42px;
  font-size: 17px;
  border-radius: var(--bt-radius-xl);
}

.bt-btn-xl {
  padding: 20px 50px;
  font-size: 18px;
  border-radius: var(--bt-radius-xl);
}

/* Button Variants */
.bt-btn-primary {
  background: var(--bt-gradient-primary);
  color: #fff;
  box-shadow: var(--bt-shadow-primary);
}

.bt-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px -10px rgba(37,99,235,0.5);
  color: #fff;
}

.bt-btn-secondary {
  background: var(--bt-gradient-accent);
  color: #fff;
  box-shadow: var(--bt-shadow-accent);
}

.bt-btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px -10px rgba(16,185,129,0.5);
  color: #fff;
}

.bt-btn-dark {
  background: var(--bt-dark);
  color: #fff;
  box-shadow: var(--bt-shadow-lg);
}

.bt-btn-dark:hover {
  transform: translateY(-3px);
  background: var(--bt-dark-2);
  color: #fff;
}

.bt-btn-outline {
  background: transparent;
  color: var(--bt-primary);
  border: 2px solid var(--bt-primary);
}

.bt-btn-outline:hover {
  background: var(--bt-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--bt-shadow-primary);
}

.bt-btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.bt-btn-outline-white:hover {
  background: #fff;
  color: var(--bt-dark);
  transform: translateY(-3px);
}

.bt-btn-glass {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.bt-btn-glass:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
  color: #fff;
}

.bt-btn-soft {
  background: var(--bt-primary-50);
  color: var(--bt-primary);
}

.bt-btn-soft:hover {
  background: var(--bt-primary-100);
  transform: translateY(-2px);
  color: var(--bt-primary);
}

.bt-btn-white {
  background: #fff;
  color: var(--bt-dark);
  box-shadow: var(--bt-shadow-md);
}

.bt-btn-white:hover {
  transform: translateY(-3px);
  box-shadow: var(--bt-shadow-lg);
  color: var(--bt-dark);
}

.bt-btn-danger {
  background: var(--bt-danger);
  color: #fff;
}

.bt-btn-danger:hover {
  background: #DC2626;
  transform: translateY(-3px);
  color: #fff;
}

.bt-btn-success {
  background: var(--bt-success);
  color: #fff;
}

.bt-btn-success:hover {
  background: #16A34A;
  transform: translateY(-3px);
  color: #fff;
}

.bt-btn-warning {
  background: var(--bt-warning);
  color: #fff;
}

/* Icon Button */
.bt-btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--bt-radius-md);
  font-size: 18px;
}

.bt-btn-icon-sm {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--bt-radius-sm);
  font-size: 15px;
}

.bt-btn-icon-lg {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: var(--bt-radius-lg);
  font-size: 22px;
}

/* Button Group */
.bt-btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Loading Button */
.bt-btn-loading {
  pointer-events: none;
  opacity: 0.7;
}

.bt-btn-loading .bt-btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bt-rotate 0.8s linear infinite;
}

/* ==================== CARDS ==================== */
.bt-card {
  background: var(--bt-white);
  border-radius: var(--bt-radius-lg);
  border: 1px solid var(--bt-border);
  padding: 28px;
  transition: var(--bt-transition);
  position: relative;
  overflow: hidden;
}

.bt-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: var(--bt-gradient-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.bt-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bt-shadow-xl);
  border-color: transparent;
}

.bt-card:hover::before {
  transform: scaleX(1);
}

/* Glass Card */
.bt-card-glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--bt-radius-lg);
  padding: 28px;
  transition: var(--bt-transition);
}

.bt-card-glass:hover {
  transform: translateY(-6px);
  box-shadow: var(--bt-shadow-glass);
}

/* Dark Card */
.bt-card-dark {
  background: var(--bt-dark);
  border-radius: var(--bt-radius-lg);
  padding: 28px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--bt-transition);
}

.bt-card-dark:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15,23,42,0.4);
}

.bt-card-dark h3,
.bt-card-dark h4,
.bt-card-dark h5 {
  color: #fff;
}

/* Gradient Border Card */
.bt-card-gradient {
  position: relative;
  background: var(--bt-white);
  border-radius: var(--bt-radius-lg);
  padding: 28px;
  border: none;
  z-index: 1;
}

.bt-card-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--bt-radius-lg);
  padding: 2px;
  background: var(--bt-gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

/* Feature Card */
.bt-feature-card {
  background: var(--bt-white);
  border-radius: var(--bt-radius-xl);
  padding: 36px 28px;
  border: 1px solid var(--bt-border);
  transition: var(--bt-transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.bt-feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37,99,235,0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.bt-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--bt-shadow-xl);
  border-color: var(--bt-primary-100);
}

.bt-feature-card:hover::after {
  opacity: 1;
}

.bt-feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--bt-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  position: relative;
  transition: var(--bt-transition);
}

.bt-feature-card:hover .bt-feature-icon {
  transform: scale(1.1) rotate(-5deg);
}

.bt-feature-icon-primary {
  background: var(--bt-primary-50);
  color: var(--bt-primary);
}

.bt-feature-icon-secondary {
  background: rgba(6,182,212,0.1);
  color: var(--bt-secondary);
}

.bt-feature-icon-accent {
  background: rgba(16,185,129,0.1);
  color: var(--bt-accent);
}

.bt-feature-icon-warning {
  background: rgba(245,158,11,0.1);
  color: var(--bt-warning);
}

.bt-feature-icon-danger {
  background: rgba(239,68,68,0.1);
  color: var(--bt-danger);
}

.bt-feature-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.bt-feature-card p {
  font-size: 14px;
  color: var(--bt-text-light);
  line-height: 1.8;
  margin-bottom: 0;
}

/* Stat Card */
.bt-stat-card {
  background: var(--bt-white);
  border-radius: var(--bt-radius-lg);
  padding: 24px;
  border: 1px solid var(--bt-border);
  transition: var(--bt-transition);
  display: flex;
  align-items: center;
  gap: 16px;
}

.bt-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bt-shadow-lg);
}

.bt-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--bt-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.bt-stat-info h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 2px;
  line-height: 1.2;
}

.bt-stat-info span {
  font-size: 13px;
  color: var(--bt-text-light);
}

.bt-stat-change {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--bt-radius-full);
}

.bt-stat-change.up {
  color: var(--bt-success);
  background: rgba(34,197,94,0.1);
}

.bt-stat-change.down {
  color: var(--bt-danger);
  background: rgba(239,68,68,0.1);
}

/* Profile Card */
.bt-profile-card {
  background: var(--bt-white);
  border-radius: var(--bt-radius-xl);
  overflow: hidden;
  border: 1px solid var(--bt-border);
  transition: var(--bt-transition);
}

.bt-profile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bt-shadow-xl);
}

.bt-profile-card-cover {
  height: 120px;
  background: var(--bt-gradient-primary);
  position: relative;
  overflow: hidden;
}

.bt-profile-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--bt-white);
  position: absolute;
  bottom: -40px;
  right: 24px;
  background: var(--bt-bg);
  overflow: hidden;
  box-shadow: var(--bt-shadow-md);
}

.bt-profile-card-body {
  padding: 52px 24px 24px;
}

/* Pricing Card */
.bt-pricing-card {
  background: var(--bt-white);
  border-radius: var(--bt-radius-xl);
  padding: 40px 32px;
  border: 1px solid var(--bt-border);
  transition: var(--bt-transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bt-pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--bt-shadow-xl);
}

.bt-pricing-card.featured {
  background: var(--bt-dark);
  border-color: transparent;
  color: #fff;
}

.bt-pricing-card.featured h3,
.bt-pricing-card.featured .bt-pricing-price {
  color: #fff;
}

.bt-pricing-card.featured .bt-pricing-features li {
  color: rgba(255,255,255,0.7);
}

.bt-pricing-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 16px;
  border-radius: var(--bt-radius-full);
  font-size: 12px;
  font-weight: 700;
  background: var(--bt-gradient-primary);
  color: #fff;
}

.bt-pricing-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bt-pricing-desc {
  font-size: 14px;
  color: var(--bt-text-light);
  margin-bottom: 24px;
}

.bt-pricing-price {
  font-size: 42px;
  font-weight: 900;
  color: var(--bt-dark);
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.bt-pricing-price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--bt-text-light);
}

.bt-pricing-period {
  font-size: 13px;
  color: var(--bt-text-lighter);
  margin-bottom: 28px;
}

.bt-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  flex-grow: 1;
}

.bt-pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--bt-text);
}

.bt-pricing-features li i {
  color: var(--bt-accent);
  font-size: 16px;
}

.bt-pricing-features li.disabled {
  opacity: 0.4;
}

.bt-pricing-features li.disabled i {
  color: var(--bt-text-lighter);
}

/* Blog Card */
.bt-blog-card {
  background: var(--bt-white);
  border-radius: var(--bt-radius-xl);
  overflow: hidden;
  border: 1px solid var(--bt-border);
  transition: var(--bt-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bt-blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--bt-shadow-xl);
}

.bt-blog-card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.bt-blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bt-blog-card:hover .bt-blog-card-image img {
  transform: scale(1.08);
}

.bt-blog-card-category {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  border-radius: var(--bt-radius-full);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  color: var(--bt-primary);
}

.bt-blog-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.bt-blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--bt-text-lighter);
  margin-bottom: 12px;
}

.bt-blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bt-blog-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.6;
  transition: var(--bt-transition-fast);
}

.bt-blog-card:hover .bt-blog-card-title {
  color: var(--bt-primary);
}

.bt-blog-card-excerpt {
  font-size: 14px;
  color: var(--bt-text-light);
  line-height: 1.8;
  margin-bottom: 16px;
  flex-grow: 1;
}

.bt-blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--bt-border);
}

.bt-blog-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bt-blog-card-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.bt-blog-card-author span {
  font-size: 13px;
  font-weight: 600;
  color: var(--bt-text);
}

/* ==================== FORMS ==================== */
.bt-form-group {
  margin-bottom: 24px;
  position: relative;
}

.bt-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--bt-dark);
  margin-bottom: 8px;
}

.bt-form-label .required {
  color: var(--bt-danger);
}

.bt-form-control {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--bt-font);
  font-size: 15px;
  color: var(--bt-text);
  background: var(--bt-white);
  border: 2px solid var(--bt-border);
  border-radius: var(--bt-radius-md);
  transition: var(--bt-transition);
  outline: none;
}

.bt-form-control:focus {
  border-color: var(--bt-primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.bt-form-control::placeholder {
  color: var(--bt-text-lighter);
}

.bt-form-control.is-invalid {
  border-color: var(--bt-danger);
}

.bt-form-control.is-valid {
  border-color: var(--bt-success);
}

/* Input with Icon */
.bt-input-icon {
  position: relative;
}

.bt-input-icon .bt-form-control {
  padding-right: 48px;
}

.bt-input-icon i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bt-text-lighter);
  font-size: 18px;
  transition: var(--bt-transition-fast);
}

.bt-input-icon:focus-within i {
  color: var(--bt-primary);
}

/* Input Group */
.bt-input-group {
  display: flex;
}

.bt-input-group .bt-form-control {
  border-radius: 0 var(--bt-radius-md) var(--bt-radius-md) 0;
}

.bt-input-group .bt-input-group-btn {
  border-radius: var(--bt-radius-md) 0 0 var(--bt-radius-md);
  padding: 14px 24px;
  background: var(--bt-gradient-primary);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--bt-transition);
  white-space: nowrap;
}

/* Textarea */
textarea.bt-form-control {
  min-height: 140px;
  resize: vertical;
}

/* Select */
.bt-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 44px;
}

/* Checkbox & Radio */
.bt-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--bt-text);
}

.bt-checkbox input {
  display: none;
}

.bt-checkbox-mark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--bt-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--bt-transition);
  flex-shrink: 0;
}

.bt-checkbox-mark i {
  font-size: 12px;
  color: #fff;
  opacity: 0;
  transform: scale(0);
  transition: var(--bt-transition-bounce);
}

.bt-checkbox input:checked + .bt-checkbox-mark {
  background: var(--bt-primary);
  border-color: var(--bt-primary);
}

.bt-checkbox input:checked + .bt-checkbox-mark i {
  opacity: 1;
  transform: scale(1);
}

/* Switch Toggle */
.bt-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.bt-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.bt-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bt-border);
  border-radius: var(--bt-radius-full);
  transition: var(--bt-transition);
}

.bt-switch-slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  right: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: var(--bt-transition);
  box-shadow: var(--bt-shadow-sm);
}

.bt-switch input:checked + .bt-switch-slider {
  background: var(--bt-primary);
}

.bt-switch input:checked + .bt-switch-slider::before {
  transform: translateX(-24px);
}

/* Form Help Text */
.bt-form-text {
  font-size: 12px;
  color: var(--bt-text-lighter);
  margin-top: 6px;
}

.bt-form-error {
  font-size: 12px;
  color: var(--bt-danger);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==================== BADGES ==================== */
.bt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--bt-radius-full);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.bt-badge-primary {
  background: var(--bt-primary-50);
  color: var(--bt-primary);
}

.bt-badge-success {
  background: rgba(34,197,94,0.1);
  color: var(--bt-success);
}

.bt-badge-warning {
  background: rgba(245,158,11,0.1);
  color: var(--bt-warning);
}

.bt-badge-danger {
  background: rgba(239,68,68,0.1);
  color: var(--bt-danger);
}

.bt-badge-info {
  background: rgba(6,182,212,0.1);
  color: var(--bt-secondary);
}

.bt-badge-dark {
  background: var(--bt-dark);
  color: #fff;
}

.bt-badge-gradient {
  background: var(--bt-gradient-primary);
  color: #fff;
}

.bt-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.bt-badge-dot-success { background: var(--bt-success); }
.bt-badge-dot-warning { background: var(--bt-warning); }
.bt-badge-dot-danger { background: var(--bt-danger); }
.bt-badge-dot-primary { background: var(--bt-primary); }

/* ==================== ALERTS ==================== */
.bt-alert {
  padding: 16px 20px;
  border-radius: var(--bt-radius-md);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
  border: 1px solid;
  position: relative;
  animation: bt-alert-slide 0.4s ease;
}

@keyframes bt-alert-slide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.bt-alert i {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.bt-alert-success {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.2);
  color: #166534;
}

.bt-alert-success i { color: var(--bt-success); }

.bt-alert-warning {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.2);
  color: #92400E;
}

.bt-alert-warning i { color: var(--bt-warning); }

.bt-alert-danger {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.2);
  color: #991B1B;
}

.bt-alert-danger i { color: var(--bt-danger); }

.bt-alert-info {
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.2);
  color: #1E40AF;
}

.bt-alert-info i { color: var(--bt-primary); }

.bt-alert-close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--bt-transition-fast);
  color: inherit;
}

.bt-alert-close:hover {
  opacity: 1;
}

/* ==================== TOAST ==================== */
.bt-toast-container {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: var(--bt-z-tooltip);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bt-toast {
  background: var(--bt-white);
  border-radius: var(--bt-radius-md);
  padding: 16px 20px;
  box-shadow: var(--bt-shadow-xl);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 320px;
  max-width: 420px;
  animation: bt-toast-in 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-right: 4px solid;
}

@keyframes bt-toast-in {
  from { opacity: 0; transform: translateX(-100%) scale(0.8); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.bt-toast.removing {
  animation: bt-toast-out 0.3s ease forwards;
}

@keyframes bt-toast-out {
  to { opacity: 0; transform: translateX(-100%) scale(0.8); }
}

.bt-toast-success { border-right-color: var(--bt-success); }
.bt-toast-error { border-right-color: var(--bt-danger); }
.bt-toast-warning { border-right-color: var(--bt-warning); }
.bt-toast-info { border-right-color: var(--bt-primary); }

.bt-toast-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--bt-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.bt-toast-success .bt-toast-icon {
  background: rgba(34,197,94,0.1);
  color: var(--bt-success);
}

.bt-toast-error .bt-toast-icon {
  background: rgba(239,68,68,0.1);
  color: var(--bt-danger);
}

.bt-toast-body {
  flex-grow: 1;
}

.bt-toast-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--bt-dark);
  margin-bottom: 2px;
}

.bt-toast-message {
  font-size: 13px;
  color: var(--bt-text-light);
}

.bt-toast-close {
  background: none;
  border: none;
  color: var(--bt-text-lighter);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: var(--bt-transition-fast);
}

.bt-toast-close:hover {
  color: var(--bt-dark);
}

/* Progress bar for toast */
.bt-toast-progress {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 3px;
  border-radius: 0 0 0 var(--bt-radius-md);
  animation: bt-toast-progress 4s linear forwards;
}

@keyframes bt-toast-progress {
  from { width: 100%; }
  to { width: 0%; }
}

/* ==================== MODAL ==================== */
.bt-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--bt-z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--bt-transition);
}

.bt-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bt-modal {
  background: var(--bt-white);
  border-radius: var(--bt-radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: var(--bt-transition);
  box-shadow: var(--bt-shadow-2xl);
}

.bt-modal-overlay.active .bt-modal {
  transform: scale(1) translateY(0);
}

.bt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--bt-border);
}

.bt-modal-title {
  font-size: 18px;
  font-weight: 700;
}

.bt-modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--bt-radius-sm);
  border: none;
  background: var(--bt-bg);
  color: var(--bt-text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--bt-transition-fast);
}

.bt-modal-close:hover {
  background: var(--bt-danger);
  color: #fff;
}

.bt-modal-body {
  padding: 28px;
}

.bt-modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--bt-border);
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

/* ==================== DROPDOWN ==================== */
.bt-dropdown {
  position: relative;
  display: inline-block;
}

.bt-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--bt-white);
  border-radius: var(--bt-radius-md);
  border: 1px solid var(--bt-border);
  box-shadow: var(--bt-shadow-xl);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--bt-transition);
  z-index: var(--bt-z-dropdown);
}

.bt-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bt-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--bt-radius-sm);
  font-size: 14px;
  color: var(--bt-text);
  transition: var(--bt-transition-fast);
  cursor: pointer;
}

.bt-dropdown-item:hover {
  background: var(--bt-primary-50);
  color: var(--bt-primary);
}

.bt-dropdown-item i {
  width: 20px;
  text-align: center;
}

.bt-dropdown-divider {
  height: 1px;
  background: var(--bt-border);
  margin: 6px 0;
}

/* ==================== TOOLTIP ==================== */
.bt-tooltip {
  position: relative;
  display: inline-block;
}

.bt-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  right: 50%;
  transform: translateX(50%) translateY(5px);
  background: var(--bt-dark);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--bt-radius-sm);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--bt-transition);
  pointer-events: none;
  z-index: var(--bt-z-tooltip);
}

.bt-tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  right: 50%;
  transform: translateX(50%);
  border: 6px solid transparent;
  border-top-color: var(--bt-dark);
  opacity: 0;
  visibility: hidden;
  transition: var(--bt-transition);
  pointer-events: none;
  z-index: var(--bt-z-tooltip);
}

.bt-tooltip:hover::after,
.bt-tooltip:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0);
}

/* ==================== TABS ==================== */
.bt-tabs {
  display: flex;
  gap: 4px;
  background: var(--bt-bg);
  padding: 6px;
  border-radius: var(--bt-radius-md);
  margin-bottom: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bt-tab {
  padding: 10px 24px;
  border-radius: var(--bt-radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--bt-text-light);
  cursor: pointer;
  transition: var(--bt-transition);
  white-space: nowrap;
  border: none;
  background: transparent;
  font-family: var(--bt-font);
}

.bt-tab:hover {
  color: var(--bt-primary);
}

.bt-tab.active {
  background: var(--bt-white);
  color: var(--bt-primary);
  box-shadow: var(--bt-shadow-sm);
}

.bt-tab-content {
  display: none;
  animation: bt-fade-in 0.4s ease;
}

.bt-tab-content.active {
  display: block;
}

@keyframes bt-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== ACCORDION ==================== */
.bt-accordion {
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius-lg);
  overflow: hidden;
}

.bt-accordion-item {
  border-bottom: 1px solid var(--bt-border);
}

.bt-accordion-item:last-child {
  border-bottom: none;
}

.bt-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  transition: var(--bt-transition);
  background: var(--bt-white);
}

.bt-accordion-header:hover {
  background: var(--bt-primary-50);
}

.bt-accordion-header h5 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bt-accordion-header .bt-accordion-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--bt-radius-sm);
  background: var(--bt-primary-50);
  color: var(--bt-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--bt-transition);
  flex-shrink: 0;
}

.bt-accordion-item.active .bt-accordion-header .bt-accordion-icon {
  background: var(--bt-primary);
  color: #fff;
  transform: rotate(180deg);
}

.bt-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.bt-accordion-body-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--bt-text-light);
  line-height: 1.9;
}

/* ==================== PAGINATION ==================== */
.bt-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.bt-pagination-item {
  width: 42px;
  height: 42px;
  border-radius: var(--bt-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--bt-text);
  background: var(--bt-white);
  border: 1px solid var(--bt-border);
  transition: var(--bt-transition);
  cursor: pointer;
  text-decoration: none;
}

.bt-pagination-item:hover {
  border-color: var(--bt-primary);
  color: var(--bt-primary);
  transform: translateY(-2px);
}

.bt-pagination-item.active {
  background: var(--bt-gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--bt-shadow-primary);
}

.bt-pagination-item.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ==================== TIMELINE ==================== */
.bt-timeline {
  position: relative;
  padding-right: 32px;
}

.bt-timeline::before {
  content: '';
  position: absolute;
  right: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--bt-border);
}

.bt-timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.bt-timeline-item:last-child {
  padding-bottom: 0;
}

.bt-timeline-dot {
  position: absolute;
  right: -32px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bt-white);
  border: 3px solid var(--bt-primary);
  z-index: 1;
}

.bt-timeline-dot-success { border-color: var(--bt-success); }
.bt-timeline-dot-warning { border-color: var(--bt-warning); }
.bt-timeline-dot-danger { border-color: var(--bt-danger); }

.bt-timeline-content h5 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bt-timeline-content p {
  font-size: 13px;
  color: var(--bt-text-light);
  margin-bottom: 0;
}

.bt-timeline-time {
  font-size: 12px;
  color: var(--bt-text-lighter);
  margin-top: 4px;
}

/* ==================== PROGRESS BAR ==================== */
.bt-progress {
  height: 8px;
  background: var(--bt-border);
  border-radius: var(--bt-radius-full);
  overflow: hidden;
}

.bt-progress-bar {
  height: 100%;
  border-radius: var(--bt-radius-full);
  background: var(--bt-gradient-primary);
  transition: width 1s ease;
  position: relative;
  overflow: hidden;
}

.bt-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: bt-shimmer 2s infinite;
}

.bt-progress-bar-success { background: var(--bt-gradient-accent); }
.bt-progress-bar-warning { background: var(--bt-gradient-warm); }

/* ==================== AVATAR ==================== */
.bt-avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bt-white);
}

.bt-avatar-xs { width: 28px; height: 28px; }
.bt-avatar-sm { width: 36px; height: 36px; }
.bt-avatar-md { width: 44px; height: 44px; }
.bt-avatar-lg { width: 56px; height: 56px; }
.bt-avatar-xl { width: 72px; height: 72px; }
.bt-avatar-2xl { width: 96px; height: 96px; }

.bt-avatar-group {
  display: flex;
}

.bt-avatar-group .bt-avatar {
  margin-right: -12px;
}

.bt-avatar-group .bt-avatar:first-child {
  margin-right: 0;
}

/* ==================== DIVIDER ==================== */
.bt-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.bt-divider::before,
.bt-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bt-border);
}

.bt-divider span {
  font-size: 13px;
  color: var(--bt-text-lighter);
  white-space: nowrap;
}

/* ==================== SKELETON LOADING ==================== */
.bt-skeleton {
  background: linear-gradient(90deg, var(--bt-border) 25%, #f1f5f9 50%, var(--bt-border) 75%);
  background-size: 200% 100%;
  animation: bt-shimmer 1.5s infinite;
  border-radius: var(--bt-radius-sm);
}

.bt-skeleton-text {
  height: 14px;
  margin-bottom: 10px;
}

.bt-skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 16px;
}

.bt-skeleton-avatar {
  border-radius: 50%;
}

.bt-skeleton-image {
  height: 200px;
  border-radius: var(--bt-radius-md);
}

/* ==================== EMPTY STATE ==================== */
.bt-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.bt-empty-state-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--bt-radius-xl);
  background: var(--bt-primary-50);
  color: var(--bt-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
}

.bt-empty-state h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bt-empty-state p {
  font-size: 14px;
  color: var(--bt-text-light);
  max-width: 400px;
  margin: 0 auto 24px;
}