.profile-page {
  padding: 120px 0 80px;
  min-height: 100vh;
  background: var(--black);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}

.profile-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 2px;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(198,40,40,0.3);
}

.profile-header h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 3px;
  margin-bottom: 4px;
  color: var(--white);
}

.profile-email {
  color: var(--gray);
  font-size: 0.9rem;
}

.profile-provider {
  font-size: 0.75rem;
  color: var(--red-light);
  margin-top: 4px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.profile-card {
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.profile-card:hover {
  border-color: rgba(136,136,136,0.2);
}

.profile-card h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-card h2::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}

.profile-card .form-group {
  margin-bottom: 16px;
}

.profile-card .form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-light);
  margin-bottom: 6px;
}

.profile-card .form-group input {
  width: 100%;
  padding: 12px 14px;
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
}

.profile-card .form-group input:focus {
  outline: none;
  border-color: var(--red);
}

.profile-card .form-group input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-msg {
  font-size: 0.8rem;
  min-height: 20px;
  margin-bottom: 8px;
}

.profile-msg.success {
  color: #4CAF50;
}

.profile-msg.error {
  color: var(--red-light);
}

.profile-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.profile-card-wide {
  grid-column: 1 / -1;
}

/* PROFILE CART */
.profile-cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
  background: var(--dark-2);
  transition: var(--transition);
}

.profile-cart-item:hover {
  background: var(--dark-3);
}

.profile-cart-item:last-child {
  margin-bottom: 0;
}

.profile-cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--dark-3);
}

.profile-cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-cart-item-info {
  flex: 1;
}

.profile-cart-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--white);
}

.profile-cart-item-info span {
  font-size: 0.8rem;
  color: var(--gray);
  background: var(--dark-3);
  padding: 2px 8px;
  border-radius: 4px;
}

.profile-cart-item-price {
  color: var(--red-light);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.profile-cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  margin-top: 8px;
  border-top: 2px solid var(--red);
}

.profile-cart-total {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-cart-total span:first-child {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-cart-total span:last-child {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--red-light);
}

.profile-empty {
  color: var(--gray);
  font-size: 0.9rem;
  text-align: center;
  padding: 40px 0;
  opacity: 0.7;
}

.profile-empty::before {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.4;
}

/* PROFILE ORDERS */
.profile-order {
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.profile-order:hover {
  border-color: rgba(136,136,136,0.2);
}

.profile-order:last-child {
  margin-bottom: 0;
}

.profile-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dark-3);
  flex-wrap: wrap;
  gap: 8px;
}

.profile-order-id {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--red-light);
}

.profile-order-date {
  font-size: 0.8rem;
  color: var(--gray);
}

.profile-order-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-confirmed {
  background: rgba(76, 175, 80, 0.15);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-pending {
  background: rgba(255, 193, 7, 0.15);
  color: #FFC107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-shipped {
  background: rgba(33, 150, 243, 0.15);
  color: #2196F3;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.profile-order-items {
  margin-bottom: 12px;
}

.profile-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 4px;
  font-size: 0.85rem;
  border-radius: 6px;
  background: rgba(42,42,42,0.5);
}

.profile-order-item span:first-child {
  color: var(--white);
}

.profile-order-item span:last-child {
  color: var(--gray-light);
  font-weight: 500;
}

.profile-order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 2px solid var(--red);
}

.profile-order-footer span:first-child {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-order-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--red-light);
}

.profile-order-card {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-card-danger {
  grid-column: 1 / -1;
  border-color: rgba(198,40,40,0.25);
  background: rgba(198,40,40,0.04);
}

.profile-card-danger:hover {
  border-color: rgba(198,40,40,0.4);
}

.profile-card-danger h2 {
  color: var(--red-light);
}

.profile-card-danger h2::before {
  background: var(--red-light);
}

.btn-danger {
  background: transparent;
  color: var(--red-light);
  border: 2px solid var(--red);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-danger:hover {
  background: var(--red);
  color: var(--white-pure);
}

/* CONFIRM MODAL */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.confirm-overlay.active {
  opacity: 1;
  visibility: visible;
}

.confirm-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 440px;
  max-width: 92vw;
  background: var(--dark);
  border: 1px solid rgba(198,40,40,0.4);
  border-radius: var(--radius);
  padding: 32px;
  z-index: 3001;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.confirm-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.confirm-modal h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--red-light);
  margin-bottom: 12px;
}

.confirm-modal p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.confirm-warning {
  color: var(--white) !important;
  font-size: 0.85rem !important;
}

.confirm-modal input {
  width: 100%;
  padding: 12px 14px;
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.confirm-modal input:focus {
  outline: none;
  border-color: var(--red);
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.confirm-actions .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-header h1 {
    font-size: 1.8rem;
  }
}
